mono/xwt — pull request #117 by knocte (2012-05-13 23:44:17+00:00)
Title: ProgressBar widget implemented for XWT, 3 backends included

All is here, 3 backends for ProgressBar are working.

The ProgressBar can be set in 2 modes: without a fraction, when the remaining time to be completed is unknown, and with a fraction of value between 0.0 and 1.0 (like gtk+ API).

As there is no Pulse() API in WPF or Mac for the case in which the progressBar operates without a fraction (unknown progress), I've decided to simulate default pulse-loop in the Gtk backend, like the other backends work (in Mac/WPF the speed of the animation cannot be set, and in WPF the animation cannot even be stopped). Therefore, this is a common denominator of all APIs.

The only thing that is not correct (and makes this pull request a RFC basically) is the setting of Height and Width values of the WPF backend. If I don't set those values to something, the progressbar is basically almost hidden. So I'm not sure what values should I use there: is there any way to guess what's the size of the Parent Container or something?

Thanks in advance.