Uploaded April 2026 | Updated September 2026, 2 weeks ago
Hand-coding every Avalonia button style from scratch — no theme generators, no AI shortcuts. We take the button file from the Setup episode and transform it into a full prototype sketch theme, covering all button states: Default, Hover, Pressed, Disabled, and Accent.
By the end you'll understand exactly how Avalonia's control templates and theme resources work — and how to override them with confidence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• How to display all button states visually in the Avalonia designer
• Editing ButtonBackground, ButtonForeground and BorderBrush per state
• Creating preview classes (previewhover, previewpressed) for design-time visualisation
• Styling Accent buttons with LinearGradientBrush
• Adding dashed borders using ControlTemplate and Rectangle
• Changing font family for a hand-sketched prototype feel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏱ TIMESTAMPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
0:00 – Introduction & project goal
0:43 – Initial button setup & identifying theme gaps
1:27 – Setting up button states in XAML (Default, Hover, Pressed, Disabled)
2:51 – Setting up Accent button states
4:33 – Integrating the Prototype theme namespace
6:44 – Modifying default button backgrounds
10:00 – Modifying Pressed, Disabled & Foreground colours
12:25 – Applying preview styles for Hover and Pressed states
15:00 – Modifying button borders
16:17 – Changing font family to a prototype style
16:48 – Styling Accent button backgrounds with gradients
23:00 – Adding dashed borders to Accent buttons via ControlTemplate
30:37 – Wrap-up
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔗 LINKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▶ Part 1 – Initial Setup: youtube.com/watch?v=rUKlQnjU0tc
🌐 AngelSix: angelsix.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📺 SERIES: Avalonia UI Theming – Hand Coded From Scratch
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding
Hand-coding every Avalonia button style from scratch — no theme generators, no AI shortcuts. We take the button file from the Setup episode and transform it into a full prototype sketch theme, covering all button states: Default, Hover, Pressed, Disabled, and Accent.
By the end you'll understand exactly how Avalonia's control templates and theme resources work — and how to override them with confidence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• How to display all button states visually in the Avalonia designer
• Editing ButtonBackground, ButtonForeground and BorderBrush per state
• Creating preview classes (previewhover, previewpressed) for design-time visualisation
• Styling Accent buttons with LinearGradientBrush
• Adding dashed borders using ControlTemplate and Rectangle
• Changing font family for a hand-sketched prototype feel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏱ TIMESTAMPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
0:00 – Introduction & project goal
0:43 – Initial button setup & identifying theme gaps
1:27 – Setting up button states in XAML (Default, Hover, Pressed, Disabled)
2:51 – Setting up Accent button states
4:33 – Integrating the Prototype theme namespace
6:44 – Modifying default button backgrounds
10:00 – Modifying Pressed, Disabled & Foreground colours
12:25 – Applying preview styles for Hover and Pressed states
15:00 – Modifying button borders
16:17 – Changing font family to a prototype style
16:48 – Styling Accent button backgrounds with gradients
23:00 – Adding dashed borders to Accent buttons via ControlTemplate
30:37 – Wrap-up
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔗 LINKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▶ Part 1 – Initial Setup: youtube.com/watch?v=rUKlQnjU0tc
🌐 AngelSix: angelsix.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📺 SERIES: Avalonia UI Theming – Hand Coded From Scratch
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding










