Windows Dev Center

Slider.ThumbToolTipValueConverter property

Gets or sets the converter logic that converts the range value of the Slider into tool tip content.

Syntax


public:
property IValueConverter^ ThumbToolTipValueConverter { 
   IValueConverter^ get();
   void set (IValueConverter^ value);
}


<Slider ThumbToolTipValueConverter="referenceToValueConverter" />

XAML Values

referenceToValueConverter

A XAML inline reference to an existing implementation of a converter. Typically this is done by instantiating an object element for the IValueConverter implementing class as a XAML resource and giving that resource a key. Then you reference the resource by key through a StaticResource usage to provide the XAML attribute value for ThumbToolTipValueConverter.

Property value

Type: IValueConverter

A converter implementation.

Remarks

By default, the Slider's thumb tooltip shows the numeric value of the slider. To show other values in the thumb tooltip, you create a custom value converter and assign it to the ThumbToolTipValueConverter property.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Slider
IsThumbToolTipEnabled

 

 

Show:
© 2015 Microsoft