Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / TextBox Class / ClearButtonStyle Property
Example


    ClearButtonStyle Property (TextBox)
    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
    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