• 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 jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadToggleButton

A ToggleButton control.

Inheritance
System.Object
RadToggleButton
RadGeometryToggleButton
RadRibbonToggleButton
RadToggleSwitchButton
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

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

Constructors

RadToggleButton()

Initializes a new instance of the RadToggleButton class.

Declaration
public RadToggleButton()

Fields

ActivateEvent

Identifies the Activate routed event.

Declaration
public static readonly RoutedEvent ActivateEvent
Field Value
System.Windows.RoutedEvent

CornerRadiusProperty

Identifies the CornerRadius property.

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

InnerCornerRadiusProperty

Identifies the InnerCornerRadius property.

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

IsBackgroundVisibleProperty

Identifies the IsBackgroundVisible property.

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

PreviewClickEvent

Identifies the PreviewClick property.

Declaration
public static readonly RoutedEvent PreviewClickEvent
Field Value
System.Windows.RoutedEvent

Properties

CornerRadius

Gets or sets a value that represents the degree to which the corners of the control are rounded. This is a dependency property.

Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
System.Windows.CornerRadius

InnerCornerRadius

Gets or sets a value that represents the degree to which the inner corners of the control are rounded. This is a dependency property.

Declaration
public CornerRadius InnerCornerRadius { get; set; }
Property Value
System.Windows.CornerRadius

IsBackgroundVisible

Sets the visual appearance of the chrome not to render in Normal mode.

Declaration
public bool IsBackgroundVisible { get; set; }
Property Value
System.Boolean

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()

OnClick()

Called when a control is clicked by the mouse or the keyboard.

Declaration
protected override void OnClick()

OnCreateAutomationPeer()

Creates a RadToggleButtonAutomationPeer.

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

OnGotFocus(RoutedEventArgs)

Invoked on got focus.

Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs e

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.

OnLostFocus(RoutedEventArgs)

Invoke on focus lost.

Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs e

OnMouseEnter(MouseEventArgs)

Invoke on mouse enter.

Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

OnMouseLeave(MouseEventArgs)

Invoke on mouse leave.

Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

OnMouseLeftButtonUp(MouseButtonEventArgs)

Invoke on mouse left button up.

Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

Events

Activate

Occurs when button is clicked.

Declaration
public event EventHandler<RadRoutedEventArgs> Activate
Event Type
System.EventHandler<RadRoutedEventArgs>

PreviewClick

Occurs when the content will be Clicked. If the event handler set True for the Handled property then the button will not be clicked.

Declaration
public event RoutedEventHandler PreviewClick
Event Type
System.Windows.RoutedEventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
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.