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


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace : ToggleSwitch Class
Represents an on/off switch where the user can either click, or drag/drop the thumb, to change the value.
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 ToggleSwitch 
   Inherits System.Windows.Controls.Control
'Usage
 
Dim instance As ToggleSwitch
[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 ToggleSwitch : System.Windows.Controls.Control 
Example

<xctk:ToggleSwitch x:Name="_toggleSwitch"
         CheckedLabel="On"
         UncheckedLabel="Off"
         ThumbWidth="50"
         IsChecked="true" />

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

See Also

Reference

ToggleSwitch Members
Xceed.Wpf.Toolkit Namespace