Version

GetButtonWidth Method

Returns the preferred width of a button inside the EditorWithTextBaseDropDownButtonUIElement
Syntax
'Declaration
 
Public Shared Function GetButtonWidth( _
   ByVal displayStyle As EmbeddableElementDisplayStyle, _
   ByVal element As UIElement _
) As Integer
public static int GetButtonWidth( 
   EmbeddableElementDisplayStyle displayStyle,
   UIElement element
)

Parameters

displayStyle
The current display style.
element
A UIElement in which the button is contained. This is used to determine whether the control is in Touch mode.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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