skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadToggleSwitchButton

A ToggleSwitch button control.

Inheritance
System.Object
RadToggleButton
RadToggleSwitchButton
Inherited Members
RadToggleButton.CornerRadiusProperty
RadToggleButton.InnerCornerRadiusProperty
RadToggleButton.IsBackgroundVisibleProperty
RadToggleButton.ActivateEvent
RadToggleButton.PreviewClickEvent
RadToggleButton.OnClick()
RadToggleButton.OnMouseEnter(MouseEventArgs)
RadToggleButton.OnMouseLeave(MouseEventArgs)
RadToggleButton.OnMouseLeftButtonUp(MouseButtonEventArgs)
RadToggleButton.OnLostFocus(RoutedEventArgs)
RadToggleButton.OnGotFocus(RoutedEventArgs)
RadToggleButton.CornerRadius
RadToggleButton.InnerCornerRadius
RadToggleButton.IsBackgroundVisible
RadToggleButton.Activate
RadToggleButton.PreviewClick
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

[TelerikToolboxCategory("Buttons")]
public class RadToggleSwitchButton : RadToggleButton

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
System.Windows.DependencyProperty

CheckedContentTemplateProperty

Identifies the CheckedContentTemplate property.

Declaration
public static readonly DependencyProperty CheckedContentTemplateProperty
Field Value
System.Windows.DependencyProperty

CheckedTrackRadiusProperty

Identifies the CheckedTrackRadius property.

Declaration
public static readonly DependencyProperty CheckedTrackRadiusProperty
Field Value
System.Windows.DependencyProperty

ContentPositionProperty

Identifies the ContentPosition property.

Declaration
public static readonly DependencyProperty ContentPositionProperty
Field Value
System.Windows.DependencyProperty

ThumbHeightProperty

Identifies the ThumbHeight property.

Declaration
public static readonly DependencyProperty ThumbHeightProperty
Field Value
System.Windows.DependencyProperty

ThumbWidthProperty

Identifies the ThumbWidth property.

Declaration
public static readonly DependencyProperty ThumbWidthProperty
Field Value
System.Windows.DependencyProperty

TrackHeightProperty

Identifies the TrackHeight property.

Declaration
public static readonly DependencyProperty TrackHeightProperty
Field Value
System.Windows.DependencyProperty

TrackWidthProperty

Identifies the TrackWidth property.

Declaration
public static readonly DependencyProperty TrackWidthProperty
Field Value
System.Windows.DependencyProperty

UncheckedContentProperty

Identifies the UncheckedContent property.

Declaration
public static readonly DependencyProperty UncheckedContentProperty
Field Value
System.Windows.DependencyProperty

UncheckedContentTemplateProperty

Identifies the UncheckedContentTemplate property.

Declaration
public static readonly DependencyProperty UncheckedContentTemplateProperty
Field Value
System.Windows.DependencyProperty

UncheckedTrackRadiusProperty

Identifies the UncheckedTrackRadius property.

Declaration
public static readonly DependencyProperty UncheckedTrackRadiusProperty
Field Value
System.Windows.DependencyProperty

Properties

CheckedContent

Gets or sets the content that is displayed when the toggle switch is in the checked state.

Declaration
public object CheckedContent { get; set; }
Property Value
System.Object

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
System.Windows.DataTemplate

CheckedTrackRadius

Gets or sets the corner radius of the checked switch button track.

Declaration
public double CheckedTrackRadius { get; set; }
Property Value
System.Double

ContentPosition

Gets or sets the position of the content area of the toggle switch button.

Declaration
public SwitchButtonContentPosition ContentPosition { get; set; }
Property Value
SwitchButtonContentPosition

ThumbHeight

Gets or sets the height of the switch button thumb.

Declaration
public double ThumbHeight { get; set; }
Property Value
System.Double

ThumbWidth

Gets or sets the width of the switch button thumb.

Declaration
public double ThumbWidth { get; set; }
Property Value
System.Double

TrackHeight

Gets or sets the height of the switch button track.

Declaration
public double TrackHeight { get; set; }
Property Value
System.Double

TrackWidth

Gets or sets the width of the switch button track.

Declaration
public double TrackWidth { get; set; }
Property Value
System.Double

UncheckedContent

Gets or sets the content that is displayed when the toggle switch is in the unchecked state.

Declaration
public object UncheckedContent { get; set; }
Property Value
System.Object

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
System.Windows.DataTemplate

UncheckedTrackRadius

Gets or sets the corner radius of the unchecked switch button track.

Declaration
public double UncheckedTrackRadius { get; set; }
Property Value
System.Double

Methods

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. System.Windows.Controls.Control.ApplyTemplate.

Declaration
public override void OnApplyTemplate()
Overrides
RadToggleButton.OnApplyTemplate()

OnCreateAutomationPeer()

Creates a RadToggleButtonAutomationPeer.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

Overrides
RadToggleButton.OnCreateAutomationPeer()

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

Overrides
RadToggleButton.OnInitialized(EventArgs)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.