Nested styles in WPF - Lorenz Cuno Klopfenstein - Klopfenstein.net by Xaml forms

Sun, 02 Aug 2009 00:00:10 -0700

Nested styles in WPF - Lorenz Cuno Klopfenstein - Klopfenstein.net

by Xaml forms @ Sun, 02 Aug 2009 00:00:10 -0700



So, starting from the basics, to embed some global styles in the application, you can define an external ResourceDictionary (much like an external CSS stylesheet): ... The effect of the XAML code above is that if you define a Window's style as "GlossyWindow", automatically all buttons and menus contained in that same window will have the nested styles applied (in addition to other styles you might have explicitly set on each button or on each menu). ...