andreapier
andreapier

Reputation: 2958

Slider and radio button styling in wpf

I'm trying to style some wpf user controls to make them look the same i have in my web application. I found some really great example for every control i need except for sliders and radio buttons.
Here is how they should look like:
Slider:
custom slider

Radio Button:
custom radio button

I know i should create some ControlTemplate but i don't really know where to start...
If you can provide a complete example it would be perfect, but i guess that even some good deep advise would fit my needs. Thank you 1000!

Upvotes: 2

Views: 8253

Answers (3)

Inga
Inga

Reputation: 482

I have style sample here. It renders this:

enter image description here

Upvotes: 3

Kirk Broadhurst
Kirk Broadhurst

Reputation: 28718

Try using Expression Blend.

and specifically this video: Creating ControlTemplates.

Expression Blend is something like a XAML design application - you can size, colour, adjust fill and stroke etc on all the elements in a control. It takes a little while to get used to, but you will be able to design controls with a graphical UI and Expression will provide you with the appropriate XAML to use in your project.

Upvotes: 1

ShadeOfGrey
ShadeOfGrey

Reputation: 1266

I would start with Control Styles and Templates on MSDN pages. There are examples for most controls which give a good overview of how the control template works. Also you can extract/download the original control template and try to make your changes to it. Download default control templates

P.S. Actually the slider example on the first link resembles the one you describe.

Upvotes: 3

Related Questions