Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 558 Bytes

lab05.md

File metadata and controls

18 lines (12 loc) · 558 Bytes

Lab 5 - Styles, Resources, and Templates

Styles

  • Create default styles for the Button class and change background, width, height, margin
  • Create named styles for the Button class
  • Use Style inheritance

Resources

  • Define resources in a separate resource dictionary
  • Merge the resources from App.xaml

Control Templates

  • Create a control template for the Button class to show an Ellipse
  • Use the ContentPresenter to use the content from the button within the template
  • Use TemplateBinding to reference Width, Height, and Background