Hi,
I am using RadSlider, with range defined as follows:
and everything works fine.
But- when put inside a Data template, so I can have it on an itemsconrol, I get the SelectionEnd not binded at all.
Using Snoop, shows that the SelectionStart is binding to the ParentTemplate and works fine, but the SelectionEnd is 'Local'. Using the Clear/Reset in Snoop's menu- it starts working.
The data template for reference:
Appreciate any advice,
Thanks
Yuval
I am using RadSlider, with range defined as follows:
telerik:RadSlider Grid.Column="1" VerticalAlignment="Center" Minimum="{Binding MinVal, Mode=OneWay}" Maximum="{Binding MaxVal, Mode=OneWay}" IsSelectionRangeEnabled="True" IsCoercionSuppressed="True" SelectionStart="{Binding LowValue, Mode=TwoWay}" SelectionEnd="{Binding HighValue, Mode=TwoWay}" StepAction="MoveRange" /><telerik:RadNumericUpDown Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="2" IsInteger="True" Value="{Binding LowValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/><telerik:RadNumericUpDown Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="2" IsInteger="True" Value="{Binding HighValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>But- when put inside a Data template, so I can have it on an itemsconrol, I get the SelectionEnd not binded at all.
Using Snoop, shows that the SelectionStart is binding to the ParentTemplate and works fine, but the SelectionEnd is 'Local'. Using the Clear/Reset in Snoop's menu- it starts working.
The data template for reference:
<DataTemplate x:Key="RangeSlider"> <Grid Height="30" Margin="2, 0, 2, 0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="30*"/> <ColumnDefinition Width="30*"/> <ColumnDefinition Width="20*"/> <ColumnDefinition Width="20*"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Margin="2" VerticalAlignment="Center" Text="{Binding Name}" /> <telerik:RadSlider Grid.Column="1" Margin="2" VerticalAlignment="Center" IsSelectionRangeEnabled="True" Minimum="{Binding MinVal, Mode=OneWay}" Maximum="{Binding MaxVal, Mode=OneWay}" IsCoercionSuppressed="True" SelectionEnd="{Binding HighValue, Mode=TwoWay}" SelectionStart="{Binding LowValue, Mode=TwoWay}" StepAction="MoveRange" /> <telerik:RadNumericUpDown Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="2" IsInteger="True" Value="{Binding LowValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/> <telerik:RadNumericUpDown Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="2" IsInteger="True" Value="{Binding HighValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/> </Grid> </DataTemplate>Thanks
Yuval