Xceed Toolkit for Maui v2.0 Documentation
ClearButtonStyle Property (TextBox)
Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > TextBox Class : ClearButtonStyle Property
Gets or sets the Clear button's Style.
Syntax
'Declaration
 
Public Property ClearButtonStyle As Style
'Usage
 
Dim instance As TextBox
Dim value As Style
 
instance.ClearButtonStyle = value
 
value = instance.ClearButtonStyle
public Style ClearButtonStyle {get; set;}
Remarks
Note that the ClearButtonVisibility property must be set to WhileEditing to display the Clear button when Text is edited in the TextBox.
Example
<xctk:TextBox.ClearButtonStyle>
 <Style TargetType="{x:Type xctk:Button}">
  <Setter Property="Content"
          Value="X"/>
 </Style>
</xctk:TextBox.ClearButtonStyle>
Requirements

Target Platforms: Windows 11, Windows 10, 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

Reference

TextBox Class
TextBox Members