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

asked 2020-09-24T10:57:04.457+00:00
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,169 questions
{count} votes