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
210
Needle not displaying when created in depedency property?
posted

I'm trying to adapt this example (http://community.infragistics.com/forums/p/50183/264009.aspx#264009) to the XamRadialGauge control.  I've done this for the XamLinearGauge control without issue.  I almost have it working for the radial gauge, however the needle refuses to display. 

I've attached a demo project that illustrates a simplified version of what I'm trying to accomplish.  The main view creates two XamRadialGauge controls, both initialized with identical gauge elements.  The first is initialized through a dependency property, the second through the view constructor.  All of the elements in the unbound gauge appear; all of the elements *except the needle* appear in the bound gauge.

Can someone shed some light on this one?

Obliged,

jim

WpfApplication1.zip
Parents
  • 210
    posted

    An update on this:  it has nothing to do with dependency properties.  If I try to add a series to a gauge *after the user control is loaded* the needle is never displayed.  All other gauge elements appear as expected.  Note I can add as many gauge scales *before* the loaded event as I want, and they all display their needles appropriately.

    If I add a scale to the gauge after the containing control is loaded, the needle is listed in the scale needles collection, and I've managed to munge various properties in the debugger and gotten the needle to display, but it appears in the wrong location.  I'll verify and reproduce the behavior with a new example and supply a screenshot.

    Anyone at Infragistics have some insight on this?  Seems like I should expect new be able to add series to an existing gauge...

  • 14517
    Offline posted in reply to Jim

    Hello Jim,

    I am unsure what the issue you are experiencing is. I ran the sample you attached and  the needle displayed on both gauges:

    I also created a small test sample to with three button to update the gauge and add scales and needles after the control has been loaded. In the sample the scales / needles are added as expected. Please provide me with more information and steps to reproduce so that I can understand your issue.

    Sincerely,

    Valerie

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    AddSeries.zip
Reply Children