Hello, I have two questions concerning the barmarker in my gauge. I have a linear gauge that has a value range from -25 to 25. I'd like the bar marker to start out in the middle of the gauge at zero, and then either grow up or down based on the value. Is there a way to do this?
Also, is there a way to set the responsetime and refreshrate fields for a barmarker so that it will look animated instead of just jumping from value to value as the value changes? I'd like to behave like my needles do.
Hi Llaslo,
Let me know if you have any further questions on this matter.
The bar markers do not have a Response property that would allow you to enable animations or set a refresh rate/response time. The XamLinearGuage bar markers don't support animations. I believe only the needle supports the animations.
If you wish to animate the bar marker then you will need to handle the animations yourself. I've attached a sample that animates the bar marker by binding the bar marker Value property to a DependencyProperty I added in code behind. I then use a DoubleAnimation to animate this dependency property to the target value. This ends up animating the bar marker for me.
Let me know if you have any questions on this.