Posted on Nov 9, 2011 (permalink)
SelectionStart="{Binding Rules.Min, Mode=TwoWay}"
SelectionEnd="{Binding Rules.Max, Mode=TwoWay}"
TickFrequency="5"
IsSnapToTickEnabled="True"
IsSelectionRangeEnabled="True"
Reply
Posted on Nov 14, 2011 (permalink)
Could you please try to use the Selection property (of type SelectionRange<double>) of the the RadSlider, instead of SelectionStart and SelectionEnd ? We recently fixed some issues when binding the SelectionStart and SelectionEnd, but we highly suggest you to use the Selection property instead. With the upcoming Q3 Release , we will introduce these fixes among with documentation describing how to bind and use the Selection successfully.
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Posted on Nov 15, 2011 (permalink)
<
Grid
x:Name
=
"LayoutRoot"
Background
"White"
>
StackPanel
"Panel"
x:FieldModifier
"public"
Grid.ColumnDefinitions
ColumnDefinition
Width
"100"
/>
"300"
</
Grid.RowDefinitions
RowDefinition
Height
"50"
Button
Content
"Copy Old Value"
Click
"Button_Click"
Grid.Column
"0"
telerik:RadSlider
"Slider"
TickPlacement
"BottomRight"
VerticalAlignment
"Bottom"
SelectionStart
Selection
"{Binding Rules.Selection, Mode=TwoWay}"
TickFrequency
"5"
IsSnapToTickEnabled
"True"
IsSelectionRangeEnabled
Minimum
Maximum
Margin
"10,0,10,0"
"2"
telerik:RadSlider.TickTemplate
DataTemplate
Orientation
"Horizontal"
TextBlock
Text
"{Binding}"
FontSize
"10"
{
private Weight weightVO = new Weight();
public Weight WeightVO
get { return weightVO; }
set { weightVO = value; }
}
public MainPage()
InitializeComponent();
Panel.DataContext = WeightVO.Temp;
private void Button_Click(object sender, RoutedEventArgs e)
WeightVO.SetTempToCurrent();
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string name)
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(name));
private Search current = DefaultSearch();
public Search Current
get { return current; }
set { current = value; }
private Search temp = DefaultSearch();
public Search Temp
get { return temp; }
set { temp = value; }
public void SetTempToCurrent()
Temp.CopyValues(Current);
public static Search DefaultSearch()
Rules rules = new Rules() {End = 5d, Selection = new SelectionRange<double>(0, 5)};
return new Search() { Rules = rules };
public class Search : INotifyPropertyChanged
private Rules rules = new Rules();
public Rules Rules
get { return rules; }
set
rules = value;
OnPropertyChanged("Rules");
public void CopyValues(Search search)
Rules = new Rules(search.Rules);
public class Rules : INotifyPropertyChanged
private double end;
public double End
get { return end; }
end = value;
OnPropertyChanged("End");
private SelectionRange<
double
> selection = new SelectionRange<
>(0, 5);
public SelectionRange<
> Selection
get { return selection; }
selection = value;
End = selection.End;
OnPropertyChanged("Selection");
public Rules() { }
public Rules(Rules rules)
end = rules.end; selection = rules.selection;
Posted on Nov 18, 2011 (permalink)
Posted on Nov 21, 2011 (permalink)
Back to Top
[ Silverlight Slider Features | Documentation | Demos | Telerik TV | Self-Paced Trainer ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below