Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
UltraPictureBox disabled problem
posted

Hi,

We use for a long time WinForms 8.3.

In our applications, we use UltrapictureBox and play with enable/disable Property. When disabled, the picture become black and white (and we like it !), but when migrating to 10.1, this cool functionnality doesn't work. I've read the other post with the inverse problem, so, what about this ? Can I set a property to have a black and white image when disabled ? Or should I forget this functionnality ?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    This was a bug that was corrected. The image was being disabled because that's what the Infragistics presentation layer framework is designed to do. But the inbox PictureBox does not alter images when it is disabled, so that behavior was incorrect.

    But what you could do is use the static Infragistics.DrawUtility.CreateDisabledImage method to create a grayed-out version of your image.

    What I would do is create the disabled image at the same time I assign the image to the control, or maybe in the Form_Load and store it. Then you can simply switch the image any time the EnabledChanged event fires.

     

Children