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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 10:30:38 +00:00
1 parent 2c4a0c1a47
commit 1b82b7ad62
1 file changed
+3
+3
View File
@@ -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,