C# WPF Tutorial #20 - Reusable Style Resources

Channel:
Subscribers:
5,010
Published on ● Video Link: https://www.youtube.com/watch?v=F7DiRnH6Yqo



Category:
Tutorial
Duration: 11:11
10,230 views
274


Use style resources to make your applications much cleaner and more maintainable! Learn how to use global styles that apply to all controls within a scope, as well as defining explicit StaticResource styles that can applied per control. Also learn how to use ResourceDictionary and MergedDictionaries inside of App.xaml to easily apply and maintain styles across your entire application.

Happy Coding!

Chapters:
0:00 Setup
0:15 Why Reusable Styles?
0:42 Use Case for Styles
1:31 Creating and Applying a Style
3:22 Overriding a Style
4:33 Use Case for Explicit Style
5:00 Creating and Applying an Explicit Style
6:24 Limiting Style Scope
7:20 Application-wide Styles







Tags:
C#
WPF
Style
Setter
App.xaml
Application.Resources
ResourceDictionary
MergedDictionaries
StaticResource