Version

CaptionButtonWidth Property

Returns the width of a button in the caption area (i.e. Minimize, Maximize/Restore, or Close).
Syntax
'Declaration
 
Public ReadOnly Property CaptionButtonWidth As Double
public double CaptionButtonWidth {get;}
Remarks

Note: This property value may not be accurate when the XamRibbonWindow.IsGlassActive is true since the size of the caption buttons is not constant. Instead, the overall width required for all the caption buttons should be used (CaptionButtonAreaWidth).

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also