For the life of me, I can't figure out how to set the NeedleShape for a XamRadialGauge. I am using version 2014.2.
The sample from this page: http://help.infragistics.com/Doc/WPF/ in the article on configuring needles, the sample XAML code doesn't work for me. I am told that there is no property called NeedleShape. Here is the example code given in the example:
<ig:XamRadialGauge x:Name="radialGauge" Value = “60” EndExtent = “0.5” NeedleShape = “Rectangle” NeedlePivotShape = “CircleWithHole” > </ig:XamRadialGauge>
One would think that it should be a property on RadialGaugeNeedle, but that doesn't seem to work either.
Here is the XAML for my gauge. It works as shown below, but I need to add the code to set the needle shape. How do I do this? The documentation is not clear.
<ig:XamRadialGauge Grid.Row="0" Width="400" x:Name="TempGauge" > <ig:XamRadialGauge.Scales> <ig:RadialGaugeScale StartValue="-100" EndValue="40" StartAngle="-225" EndAngle="45"> <ig:RadialGaugeScale.Needles> <ig:RadialGaugeNeedle x:Name="GuageNeedle" Value="20" AllowDrag="False" EndExtent=".8"/> </ig:RadialGaugeScale.Needles> <ig:RadialGaugeScale.LabelGroups> <ig:RadialGaugeLabelGroup Interval="20" FontSize="32"/> </ig:RadialGaugeScale.LabelGroups> <ig:RadialGaugeScale.TickMarkGroups> <ig:RadialGaugeTickMarkGroup Interval="10" StartExtent="0.5" EndExtent="0.9" /> </ig:RadialGaugeScale.TickMarkGroups> <ig:RadialGaugeScale.Ranges> <ig:RadialGaugeRange Fill="LightGreen" StartValue="-100" EndValue="-70" OuterExtent=".9" InnerExtentStart=".7" InnerExtentEnd=".7" /> </ig:RadialGaugeScale.Ranges> </ig:RadialGaugeScale> </ig:XamRadialGauge.Scales> </ig:XamRadialGauge>
Hello Bryan,
Thank you for your post.
I have been looking into the code snippet that you have provided. It seems the that the link from documentation, which you are mentioning is from documentation for old version. From version 13.2 the control that you are looking for is divided into new controls. To be able to set the Needle Shape I can suggest you to see the following links from our online documentation for version 14.2:
http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=xamRadialGauge.html
http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=xamRadialGauge_Configuring_Needles.html
From this link you can read more details about new futures of xamRadialGauge control:
http://help.infragistics.com/Doc/WPF/current/CLR4.0/?page=Whats_New_in_2013_Volume_2.html
Please let me know if you need any further assistance on this matter.
Hi,
On this page:
Is this code snippet (exactly as I showed in my first post, and directly from the 14.2 doc page):
<ig:XamRadialGauge
x:Name="radialGauge"
Value = “60”
EndExtent = “0.5”
NeedleShape = “Rectangle”
NeedlePivotShape = “CircleWithHole” >
ig:XamRadialGauge>
The XAML code given in my first post works fine. This XAML code above reports that Value, EndExtent, NeedleShape, and NeedlePivotShape are not recognized as members of XamRadialGuage.
Here are the References in my project (in case you think that might be the issue):
And here are the name spaces for Infragistics used in my XAML declaration of the Window:
xmlns:ig="http://schemas.infragistics.com/xaml" xmlns:igDP="http://infragistics.com/DataPresenter" xmlns:igEditors="http://infragistics.com/Editors"
I must be doing something wrong somewhere.
Thanks.
I have been looking into it. It seems that the issue comes from dlls that you are using. You have used dlls for old XamGauge control, but the link from documentation that you are reading is for new XamRadialGauge control. The XamGauge is a deprecated control. What I can suggest is using the new XamRadialGauge control. You can find XamRadialGauge in the dll named InfragisticsWPF4.Controls.Gauges.v14.2.dll.
From the following link you can read more information about dlls which you need:
http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=xamRadialGauge_Getting_Started_with_xamRadialGauge.html
The EndExtent property from documentation that you are reading should be NeedleEndExtend, I have submitted this issue in our internal tracking system. I created a short sample application based on the scenario from the link that you have provided.
I am just checking if there is anything else I can do for you.