Hi,
I get the following error when a tab is closed which has a XamRadialGauge.
System.ArgumentException: '-25' is not a valid value for property 'Width'.
I've prepared a sample project that reproduces the error but couldn't attach the project as a zip file because of the error I get while adding zip file. Therefore I attached the MainWindow.xaml file with txt extension.
I tried to track down the error and found that it was the RadialGaugeTickMarkGroup causing the problem. But I don't know how to solve it. Apparently I can not give up on tickmarks! So I need an immediate solution to this error.
Can anyone help?
Thanks in advance
we reproduced your issue and it will be fixed in next Service Releases. You can expect this fix at the beginning of February.
Thanks,
Dimitrina
Thanks, but in my project I'm using MVVM and MEF so my views are supplied as DataTemplates in ResourceDictionaries. Each document\module view appears on a tab panel. So I need another solution.
Hello,
Try using the Gauge as direct content of the tab instead of a content template.
<StackPanel> <Button Content="CloseTab" Command="{x:Static igt:TabControlCommands.CloseSelected}" CommandTarget="{Binding ElementName=tcMain}" /> <igt:XamTabControl x:Name="tcMain" AllowTabClosing="True" SelectedIndex="0"> <igt:TabItemEx Header="Tab1"> <ig:XamRadialGauge Margin="2 2 2 2" HorizontalAlignment="Center"> <ig:XamRadialGauge.Scales> <ig:RadialGaugeScale EndValue="400"> <ig:RadialGaugeScale.LabelGroups> <ig:RadialGaugeLabelGroup Extent="0.72" Interval="100" FontSize="10" Orientation="Horizontal" PreTerminal="0" ZIndex="1" /> </ig:RadialGaugeScale.LabelGroups> <ig:RadialGaugeScale.Needles> <ig:RadialGaugeNeedle EndExtent="0.55" AllowDrag="True" ZIndex="1" Value="{Binding Analysis.FeedRateOverride, Mode=TwoWay}" Width="40" /> </ig:RadialGaugeScale.Needles> <ig:RadialGaugeScale.Ranges> <ig:RadialGaugeRange StartValue="10" EndValue="400" Fill="Yellow" InnerExtentStart="0.5" InnerExtentEnd="0.5" OuterExtent="0.6" /> </ig:RadialGaugeScale.Ranges> <ig:RadialGaugeScale.TickMarkGroups> <ig:RadialGaugeTickMarkGroup EndExtent="0.6" StartExtent="0.5" Interval="100" ZIndex="1" /> <ig:RadialGaugeTickMarkGroup EndExtent="0.6" StartExtent="0.5" Interval="50" ZIndex="1" /> </ig:RadialGaugeScale.TickMarkGroups> </ig:RadialGaugeScale> </ig:XamRadialGauge.Scales> </ig:XamRadialGauge> </igt:TabItemEx> </igt:XamTabControl> </StackPanel>