C# WPF Tutorial #21 - Styles and ControlTemplates
Channel:
Subscribers:
8,960
Published on ● Video Link: https://www.youtube.com/watch?v=2HP1Ig5HEgs
Take full control of the look and feel by overriding a control's ControlTemplate! Learn to create a ControlTemplate from scratch, how to get and modify a control's default template, common pitfalls for dealing with these elements, and additional helpful resources.
Microsoft Control Styles and Templates resource:
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/controls/control-styles-and-templates
Happy Coding!
Chapters
0:00 Setup
0:20 Why a ControlTemplate?
1:44 Avoiding Issues (Adding Triggers)
3:12 Creating a ControlTemplate
3:53 TemplateBinding
4:55 ContentPresenter
5:35 Triggers Work!
5:53 Warning!!
7:15 Starting from a Default Template
8:28 Modifying a Default Template
9:33 Microsoft Style Template Examples
Other Videos By Kampa Plays
Tags:
C#
WPF
Style
ControlTemplate
TemplateBinding
Default Template
ContentPresenter
Style.Triggers