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

Code Wanderer 396 Reputation points
2020-09-24T10:57:04.457+00:00

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).
exmaple:

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

where ThumbWidth is custom property.
How to do that?

Developer technologies | Windows Presentation Foundation
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.