Xaml and custom property for style (WPF) how to?

Code Wanderer 396 Reputation points

I want create new property for style. For example I want control from property some visuals (width of the Thumb or rounded corner for example).

<Slider ThumbWidth="4" RoundedCorners="6"/>

where ThumbWidth is custom property.
How to do that?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,635 questions
{count} votes