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
Avatar

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}"

 

Documentation:

Methods:
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
Avatar

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.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.