User Tools

Site Tools


notes:uwp:rangecontrols

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:uwp:rangecontrols [2018/03/02]
leszek [Slider]
notes:uwp:rangecontrols [2018/03/07] (current)
leszek [Slider]
Line 157: Line 157:
     </​i:​Interaction.Behaviors>​     </​i:​Interaction.Behaviors>​
 </​Slider>​ </​Slider>​
 +</​code>​
 +
 +Example: Customize the content in //​Slider//'​s //ToolTip// by setting //​Slider//'​s //​ThumbTollTipValueConverter//​ to an instance of a class implementing the //​IValueConverter//:​
 +
 +<code csharp>
 +class ToolTipValueConverter : IValueConverter
 +{
 +    public object Convert(object value, Type target, object param, string language)
 +    {
 +        return value; // TODO: customize the value
 +    }
 +
 +    public object ConvertBack(object value, Type target, object param, string language)
 +    {
 +        throw new NotImplementedException();​
 +    }
 +}
 </​code>​ </​code>​
  
notes/uwp/rangecontrols.txt ยท Last modified: 2018/03/07 by leszek