<!--Simple SliderThumb - The Thumb is the draggable part of a Slider--> <Style x:Key="MySliderThumb" d:IsControlPart="True" TargetType="{x:Type Thumb}"> <setter property="SnapsToDevicePixels" value="true"></setter> <setter property="Height" value="50"></setter> <setter property="Width" value="50"></setter> <setter property="Template"> <setter.value> <controltemplate targettype="{x:Type Thumb}"> <grid> <border borderbrush="{DynamicResource normalBorderBrush}" borderthickness="2"> <textblock text="{Binding ElementName=MySlider, Path=Value}"></textblock> <!--THIS WONT WORK. HOW TO BIND MY SLIDER STYLE x:key="MySlider" AND ITS CURRENT VALUE?--> </border> </grid> </controltemplate> </setter.value> </setter> </Style>
<textblock text="{TemplateBinding Value}" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)