Xceed Toolkit Plus for WPF v4.6 Documentation
MaterialSwitch Class
Members 


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace : MaterialSwitch Class
Represents a ToogleSwitch control that uses the material colors and animations.
Syntax
'Declaration
 
<TemplatePartAttribute(Name="PART_OuterBorder", Type=System.Windows.Controls.Border)>

<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>

<XmlLangPropertyAttribute("Language")>

<UsableDuringInitializationAttribute(True)>

<RuntimeNamePropertyAttribute("Name")>

<UidPropertyAttribute("Uid")>

<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>

<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>

Public Class MaterialSwitch 

   Inherits ToggleSwitch

   Implements Xceed.Wpf.Toolkit.MaterialControls.IMaterialBrushes 
'Usage
 
Dim instance As MaterialSwitch
[TemplatePart(Name="PART_OuterBorder", Type=System.Windows.Controls.Border)]

[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]

[XmlLangProperty("Language")]

[UsableDuringInitialization(true)]

[RuntimeNameProperty("Name")]

[UidProperty("Uid")]

[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]

[NameScopeProperty("NameScope", System.Windows.NameScope)]

public class MaterialSwitch : ToggleSwitch, Xceed.Wpf.Toolkit.MaterialControls.IMaterialBrushes  
Remarks
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Xceed.Wpf.Toolkit.ToggleSwitch
                        Xceed.Wpf.Toolkit.MaterialSwitch

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

MaterialSwitch Members
Xceed.Wpf.Toolkit Namespace