Uploaded August 2026 | Updated November 2026, 4 hours ago
Setting a different color on every control is how themes become unmaintainable.
In this episode I show you the new accent system I built for the Avalonia theme — define one color once, get light, dark, hover and pressed variants automatically, and style any control with a single accent brush.
No hand-wired ResourceDictionary duplication. Full IntelliSense. Fully overridable for your own brand theme.
━━━━━━━━━━━━━━━
WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━
• How the new `accent` class + `kind="primary | success | warning | destructive"` works
• The magic `accent brush` — style without hardcoding a single hex value
• How light / dark / hover / pressed variants are auto-calculated from one base color
• How the Angel Six Theme Lab source generator creates AccentKind with full IntelliSense
• How to override with your own Brand Theme and add custom accents
• How Roslyn analyzers will stop silent XAML failures and XAML inflation for good
━━━━━━━━━━━━━━━
TIMESTAMPS
━━━━━━━━━━━━━━━
00:00 — The new accent system — one color, every variant auto-generated
00:37 — Button Spinner demo — declaring accent and kind
01:27 — Clean XAML with accent brush (no hardcoded colors)
02:39 — No extra style lines — declare once, it just works
03:15 — IntelliSense for accent kinds + light/dark variants
04:21 — The magic variable: theme accent brush + source generator
05:33 — Why you need the 2-line style class include for IntelliSense
06:17 — Auto-generated XAML (begin/end generated)
06:37 — Custom Brand Theme — overriding + adding your own accents
08:10 — How to use the theme before docs land
09:43 — Data binding & MVVM — it just works
10:04 — Legacy problem: hand-wired themes that silently go out of sync
11:22 — Next step — Roslyn analyzers to automate it all
12:22 — Where accents are at + what's next (button restyle)
━━━━━━━━━━━━━━━
LINKS & RESOURCES
━━━━━━━━━━━━━━━
▶ Full Avalonia Themes Playlist: youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ Source Code (AvaloniaThemeLab): github.com/angelsix/youtube/tree/develop/AvaloniaThemeLab
▶ GitHub: github.com/angelsix
▶ Website: angelsix.com
━━━━━━━━━━━━━━━
SERIES — Avalonia UI Theming – Hand Coded From Scratch
━━━━━━━━━━━━━━━
01 — Setup — youtube.com/watch?v=rUKlQnjU0tc
02 — Buttons | Hand Coded From Scratch — youtube.com/watch?v=oKjk6pyyARI
03 — Button Spinner | Anatomy & Internals — youtube.com/watch?v=WMaTbXkvm9g
04 — Designing a Theme System From Scratch — youtube.com/watch?v=I5halHoNfH0
05 — Checkbox Control Deep Dive — youtube.com/watch?v=uIimnwjITT0
06 — Checkbox Styling — youtube.com/watch?v=uv1bNrfCjtY
07 — Theme Engine From Scratch — youtube.com/watch?v=NXz8hwITg5U
08 — Building a Design Token System — youtube.com/watch?v=QMVdxRZqaU8
09 — One Token System for the Entire Theme — youtube.com/watch?v=JEcD1XXIiA8
10 — Avalonia Styles Not Working? You're Breaking This Rule — youtube.com/watch?v=OhJN8Ssp2hA
11 — Avalonia Just Got a Full Icon System — youtube.com/watch?v=N5HPe5GYCPo
12 — Breaking Every Avalonia Control On Purpose — youtube.com/watch?v=OmVFU-iowqI
13 — Avalonia Tool That Finds Bugs My Compiler Can't See — youtube.com/watch?v=WQB5kFJWRmc
14 — This Video — Accents (One Color That Styles Everything)
#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding
Setting a different color on every control is how themes become unmaintainable.
In this episode I show you the new accent system I built for the Avalonia theme — define one color once, get light, dark, hover and pressed variants automatically, and style any control with a single accent brush.
No hand-wired ResourceDictionary duplication. Full IntelliSense. Fully overridable for your own brand theme.
━━━━━━━━━━━━━━━
WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━
• How the new `accent` class + `kind="primary | success | warning | destructive"` works
• The magic `accent brush` — style without hardcoding a single hex value
• How light / dark / hover / pressed variants are auto-calculated from one base color
• How the Angel Six Theme Lab source generator creates AccentKind with full IntelliSense
• How to override with your own Brand Theme and add custom accents
• How Roslyn analyzers will stop silent XAML failures and XAML inflation for good
━━━━━━━━━━━━━━━
TIMESTAMPS
━━━━━━━━━━━━━━━
00:00 — The new accent system — one color, every variant auto-generated
00:37 — Button Spinner demo — declaring accent and kind
01:27 — Clean XAML with accent brush (no hardcoded colors)
02:39 — No extra style lines — declare once, it just works
03:15 — IntelliSense for accent kinds + light/dark variants
04:21 — The magic variable: theme accent brush + source generator
05:33 — Why you need the 2-line style class include for IntelliSense
06:17 — Auto-generated XAML (begin/end generated)
06:37 — Custom Brand Theme — overriding + adding your own accents
08:10 — How to use the theme before docs land
09:43 — Data binding & MVVM — it just works
10:04 — Legacy problem: hand-wired themes that silently go out of sync
11:22 — Next step — Roslyn analyzers to automate it all
12:22 — Where accents are at + what's next (button restyle)
━━━━━━━━━━━━━━━
LINKS & RESOURCES
━━━━━━━━━━━━━━━
▶ Full Avalonia Themes Playlist: youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ Source Code (AvaloniaThemeLab): github.com/angelsix/youtube/tree/develop/AvaloniaThemeLab
▶ GitHub: github.com/angelsix
▶ Website: angelsix.com
━━━━━━━━━━━━━━━
SERIES — Avalonia UI Theming – Hand Coded From Scratch
━━━━━━━━━━━━━━━
01 — Setup — youtube.com/watch?v=rUKlQnjU0tc
02 — Buttons | Hand Coded From Scratch — youtube.com/watch?v=oKjk6pyyARI
03 — Button Spinner | Anatomy & Internals — youtube.com/watch?v=WMaTbXkvm9g
04 — Designing a Theme System From Scratch — youtube.com/watch?v=I5halHoNfH0
05 — Checkbox Control Deep Dive — youtube.com/watch?v=uIimnwjITT0
06 — Checkbox Styling — youtube.com/watch?v=uv1bNrfCjtY
07 — Theme Engine From Scratch — youtube.com/watch?v=NXz8hwITg5U
08 — Building a Design Token System — youtube.com/watch?v=QMVdxRZqaU8
09 — One Token System for the Entire Theme — youtube.com/watch?v=JEcD1XXIiA8
10 — Avalonia Styles Not Working? You're Breaking This Rule — youtube.com/watch?v=OhJN8Ssp2hA
11 — Avalonia Just Got a Full Icon System — youtube.com/watch?v=N5HPe5GYCPo
12 — Breaking Every Avalonia Control On Purpose — youtube.com/watch?v=OmVFU-iowqI
13 — Avalonia Tool That Finds Bugs My Compiler Can't See — youtube.com/watch?v=WQB5kFJWRmc
14 — This Video — Accents (One Color That Styles Everything)
#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding








![I Coded Network Discovery Without AI (Heres What Happened)
Ive been coding for 28 years. In this video, I ditched the AI entirely and built
a full UDP network discovery system from scratch using nothing but experience.
Heres what learning the hard way still teaches you.
In this episode of the Avalonia UI Real World series, I implement a complete network
discovery feature — allowing a client application to automatically find a SOLIDWORKS
host running on any machine on the local network, without hardcoding any IP address.
🔧 What youll learn:
• How MDNS (Multicast DNS) and UDP broadcast discovery actually work
• Why universal broadcast (255.255.255.255) gets blocked and how to fix it
• Getting all active NIC subnet broadcast addresses in C#
• Building a UdpClient listener with cancellation tokens and async/await
• Integrating host discovery into an Avalonia UI ViewModel with live UI updates
• Handling ObservableCollection and ComboBox binding quirks in Avalonia
This is pure C# networking — no libraries, no AI shortcuts, no hand-holding. Just the
kind of code a senior developer writes when they actually understand the problem.
📌 Avalonia UI Real World Series Playlist: [ADD LINK]
🌐 Website: https://www.angelsix.com
#CSharp #AvaloniaUI #NetworkProgramming #NETDevelopment #CodingWithoutAI I Coded Network Discovery Without AI (Heres What Happened)](https://i.ytimg.com/vi/axQ-oQKxHH4/mqdefault.jpg)

