Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / Control Class / OverrideDefaultVisualStates Property


    OverrideDefaultVisualStates Property
    Gets or sets if the Control's VisualStates are overridden or not.
    Syntax
    'Declaration
     
    
    Public Property OverrideDefaultVisualStates As Nullable(Of Boolean)
     
    'Usage
     
    
    Dim instance As Control
    Dim value As Nullable(Of Boolean)
     
    instance.OverrideDefaultVisualStates = value
     
    value = instance.OverrideDefaultVisualStates
    Remarks

    When this property is set to null, it is possible to set an implicit Style on the Control.

    When this property is set to false, Xceed's default VisualStates will be applied to the Control.

    When this property is set to true, it is possible to define custom VisualStates for the Control.

    The default value is null.

    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