Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OverridesDefaultStyle in WPF

Tags:

styles

wpf

xaml

Can any one explain what OverridesDefaultStyle actually does to a control? I have read MSDN, but it is not clear.

like image 225
Sauron Avatar asked Sep 30 '09 10:09

Sauron


1 Answers

It is used to ignore the default style of a control. By default, if you put a control in your UI, all the properties that are not set locally (explicitly or with a custom style) will take their value from the default style. If you set OverridesDefaultStyle to true, the default style won't be used

like image 141
Thomas Levesque Avatar answered Nov 07 '22 06:11

Thomas Levesque