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
490
UltraProgressBar OnValueChanged method is never called
posted

Hello,

    I'm embedding an UltraProgressBar into my Win grid and am having a problem with the OnValueChanged method.  I want to use this invocation to set the color differently depending upon the Value.

    For instances of UltraProgressBar that appear at the GroupBy or Summary levels this seems to work fine.  However, for instances that are embedded into the grid itself in a given row, the OnValueChanged method and the ValueChanged events never get called or fired.  This despite the fact that the Value that I see displayed by the UltraProgressBar itself does change.

   Any ideas on what might be happening?

Thanks,
Brandon

Parents
  • 490
    posted

     I've figured out why the Summary and GroupBy instances are working properly...elsewhere in the code, I update the Value property directly in a call that looks like this:

         void IUIElementCreationFilter.AfterCreateChildElements(UIElement parent)
        {
          if (parent is SummaryValueUIElement)
          {
            //Update it here
          }
        }

      If you remove the above call - the ValueChanged event never fires at all for the ProgressBar so it seems like the Grid doesn't call Value on the ProgressBar which is set as its Editor? 

Reply Children