Height of WindowTitleBarButton in WindowChrome.TitleBarContentTemplate

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 8 years ago by Markus Springweiler
Version: 16.1.0631

Is the value 26 (+ 2x Thickness "1" -> 30) hardcoded or should I bind to some dynamic resourcekey? (did not find any in theme browser utility)


And what it this for: ?

themes:ThemeProperties.IsActive="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}, Path=IsActive}"



GetIsActive Gets the value of the IsActive attached property for the specified object.
SetIsActive Sets the value of the IsActive attached property to the specified object.

ThemeProperties.IsActive Attached Property:
[Missing <summary> documentation for "P:ActiproSoftware.Windows.Themes.ThemeProperties.IsActive"]
See GetIsActive, SetIsActive

[Modified 8 years ago]

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Markus,

I don't believe the title bar buttons have a fixed width/height.  They will use the BorderThickness specified in the AssetResourceKeys.WindowTitleBarButtonBorderNormalThicknessKey and the Padding specified by AssetResourceKeys.WindowTitleBarButtonPaddingNormalThicknessKey.  Then the content size in addition to those determines the size.  Different themes have different content size.  Metro theme use content of size 42x26.

The active state tells the button whether the window is active or inactive.  The appearance of title bar buttons typically changes (foregrounds darken, etc.) when the window is active, so the button template adjusts appropriately.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.