I have this data template:
<DataTemplate DataType="{x:Type SomeModel}">
<StackPanel Grid.Column="1"> <ig:XamNumericRangeSlider Grid.Column="1" MinValue="-5" MaxValue="100" Margin="6" VerticalAlignment="Bottom" IncreaseButtonVisibility="Collapsed" DecreaseButtonVisibility="Collapsed" TrackClickAction="MoveToPoint" IsMouseWheelEnabled="True"> <ig:XamSliderNumericThumb TrackFillBrush="Green" Value="{Binding ElementName=test, Path=Content, Mode=TwoWay}" IsSnapToTickEnabled="True"/>
<ig:XamNumericRangeSlider.TickMarks> <ig:SliderTickMarks TickMarksFrequency="5" /> </ig:XamNumericRangeSlider.TickMarks> </ig:XamNumericRangeSlider>
<Label x:Name="test"/> </StackPanel>
</DataTemplate>
I have a items control:
<ItemsControl Grid.Row="1" Grid.ColumnSpan="2" ItemsSource="{Binding SomeModel}"/>
The binding in the data template for the XamNumericRangeSlider does not work, if I make IsSnapToTickEnabled="false", it works with out any issues.
Please let me know how to make the binding work when IsSnapToTickEnabled="true"
Hi Arun,
I was able to reproduce what you are describing and it seems that removing the
IsDragEnabled="False"
setting seems to fix it.
Please test this out and let me know if you’re experiencing the same.
Hi Peter,
Sorry for the delay,
I got the update installed on my system on Friday (its a company process), everything worked as expected, but found one more issue.
I have 2 thumbs on the data template for the Slider ( we wanted red when -5 is selected from -5 to 0, green from 0 to selected value when +ve value selected), for a few clicks it snaps to the ticks, after randomly clicking around for about 5-10 clicks, the behavior changes and it stops snapping to tick.
I am attaching the code and screen shot.
Please let me know if u want to consider this as a new question so that I can mark the previous reply as verified answer.
I am just checking, if you got this working properly.
Thanks for the modifications I was able to reproduce the issue with your version. I did This behavior has already been fixed in the latest Service Release for 14.1, which you can download from the My Keys and Downloads page of your account. After selecting a product you own an additional links section will be generated and on the right-most there is a “Service Release” tab. There is a "Infragistics WPF 2014 Vol. 1 - Service Release" link. When hovered it shows the version you need – 20141.2283.
Please let me know, if I can be of any further assistance on the matter.
Hi Petar,
Thank you for the reply.
I am using infragistics 2014 volume 1, the zip file with solution you provided was using infragistics 2015.
I added the 2014.1 references to the solution you provided and ran it (XamSliderTest.zip). also included a screenshot of the output in the zip file.
it did not work.
Please note that I cannot use Infragistics 2015 for now.
Please help me out with infragistics 2014 volume 1.