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...

Reply Children