From 1b82b7ad62ed8211125d76a2ee04b789eedde4c3 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 10:30:38 +0000 Subject: [PATCH] fix(ui): apply the TitanoWindow style to window subclasses Implicit styles match the exact element type, so MainWindow and other subclasses rendered without the custom chrome template. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.Ui/Controls/TitanoWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Titano.Ui/Controls/TitanoWindow.cs b/src/Titano.Ui/Controls/TitanoWindow.cs index aa79b438..4a8f326d 100644 --- a/src/Titano.Ui/Controls/TitanoWindow.cs +++ b/src/Titano.Ui/Controls/TitanoWindow.cs @@ -37,6 +37,9 @@ public class TitanoWindow : Window public TitanoWindow() { + // Implicit styles match the exact element type only; bind every subclass (MainWindow, dialogs) to the + // TitanoWindow style from the application resources so they all get the custom chrome template. + SetResourceReference(StyleProperty, typeof(TitanoWindow)); WindowChrome.SetWindowChrome(this, new WindowChrome { CaptionHeight = 34,