Is it possible to put Button in WPF slider thumb?

Is it possible to put Button in WPF slider thumb? Not custom thumb itself but simply add button on it?


I'm not sure how you would put a button in it without customizing the Thumb. If you're interested in customization:

It looks like this sample customizes the Thumb as well as the rest of the slider.

<Style x:Key="CustomThumbForSlider" TargetType="{x:Type Thumb}">
    <Setter Property="OverridesDefaultStyle" Value="True"/>
    <Setter Property="Template">
            <ControlTemplate TargetType="{x:Type Thumb}">
                <Ellipse Fill="#FF8F4040" Stroke="#FF000000" Height="15" Width="15"/>

Having never personally done this, my guess would be that you just replace the following portion with the control template you're using:

<Ellipse Fill="#FF8F4040" Stroke="#FF000000" Height="15" Width="15"/>

EDIT: Unless you explicitly need the functionality of a button, you should probably use something like a TextBlock to display your value.

Need Your Help

jQuery searchable dropdown plugin bug

javascript jquery html plugins jquery-plugins

Firstly I would like to say, that i am fairly new to jQuery and javascript. I am trying to use plugin called jQuery searchable dropdown plugin (it's source code). Also I have tried Select2 and Chos...

OpenLayers - how do I draw a Polygon from existing lonLat points?


I have in my database longitude-latitude verticies from user-defined polygons. My questions is: how do I recreate and display them on a map now? This is quite easy to do with the Google Maps API, b...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.