ClassRadToggleSwitchButton
Represents a toggle switch button that can display three states: checked, unchecked, and indeterminate. This button extends RadToggleButton and provides properties to customize the content and appearance for each state, including options for setting the width and height of the track and thumb, as well as the corner radius of the track in both checked and unchecked states. It also includes animation capabilities for state transitions.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
[TelerikToolboxCategory("Buttons")]
public class RadToggleSwitchButton : RadToggleButton
Inheritance: objectRadToggleButtonRadToggleSwitchButton
Inherited Members
Constructors
RadToggleSwitchButton()
Initializes a new instance of the RadToggleSwitchButton class.
Declaration
public RadToggleSwitchButton()
Fields
CheckedContentProperty
Identifies the CheckedContent property.
Declaration
public static readonly DependencyProperty CheckedContentProperty
Field Value
DependencyProperty
CheckedContentTemplateProperty
Identifies the CheckedContentTemplate property.
Declaration
public static readonly DependencyProperty CheckedContentTemplateProperty
Field Value
DependencyProperty
CheckedTrackRadiusProperty
Identifies the CheckedTrackRadius property.
Declaration
public static readonly DependencyProperty CheckedTrackRadiusProperty
Field Value
DependencyProperty
ContentPositionProperty
Identifies the ContentPosition property.
Declaration
public static readonly DependencyProperty ContentPositionProperty
Field Value
DependencyProperty
ThumbHeightProperty
Identifies the ThumbHeight property.
Declaration
public static readonly DependencyProperty ThumbHeightProperty
Field Value
DependencyProperty
ThumbWidthProperty
Identifies the ThumbWidth property.
Declaration
public static readonly DependencyProperty ThumbWidthProperty
Field Value
DependencyProperty
TrackHeightProperty
Identifies the TrackHeight property.
Declaration
public static readonly DependencyProperty TrackHeightProperty
Field Value
DependencyProperty
TrackWidthProperty
Identifies the TrackWidth property.
Declaration
public static readonly DependencyProperty TrackWidthProperty
Field Value
DependencyProperty
UncheckedContentProperty
Identifies the UncheckedContent property.
Declaration
public static readonly DependencyProperty UncheckedContentProperty
Field Value
DependencyProperty
UncheckedContentTemplateProperty
Identifies the UncheckedContentTemplate property.
Declaration
public static readonly DependencyProperty UncheckedContentTemplateProperty
Field Value
DependencyProperty
UncheckedTrackRadiusProperty
Identifies the UncheckedTrackRadius property.
Declaration
public static readonly DependencyProperty UncheckedTrackRadiusProperty
Field Value
DependencyProperty
Properties
CheckedContent
Gets or sets the content that is displayed when the toggle switch is in the checked state.
CheckedContentTemplate
Gets or sets the template that defines the appearance of the control's checked state content.
Declaration
public DataTemplate CheckedContentTemplate { get; set; }
Property Value
DataTemplate
CheckedTrackRadius
Gets or sets the corner radius of the checked switch button track.
ContentPosition
Gets or sets the position of the content area of the toggle switch button.
Declaration
public SwitchButtonContentPosition ContentPosition { get; set; }
Property Value
ThumbHeight
Gets or sets the height of the switch button thumb.
ThumbWidth
Gets or sets the width of the switch button thumb.
TrackHeight
Gets or sets the height of the switch button track.
TrackWidth
Gets or sets the width of the switch button track.
UncheckedContent
Gets or sets the content that is displayed when the toggle switch is in the unchecked state.
UncheckedContentTemplate
Gets or sets the template that defines the appearance of the control's unchecked state content.
Declaration
public DataTemplate UncheckedContentTemplate { get; set; }
Property Value
DataTemplate
UncheckedTrackRadius
Gets or sets the corner radius of the unchecked switch button track.
Declaration
public double UncheckedTrackRadius { get; set; }
Property Value
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Creates a RadToggleButtonAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides