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:
1 file changed
+3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user