New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a toggle button in the RadNavigationView control.

Definition

Namespace:Telerik.Maui.Controls.NavigationView

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class NavigationViewToggleButton : NavigationViewButton, IRadButton, ITextButton, IView, IElement, ITransform, IButton, IPadding, IButtonStroke, IText, ITextStyle, IImageButton, IImage, IImageSourcePart

Inheritance: objectRadButtonNavigationViewButtonNavigationViewToggleButton

Implements: IButtonIButtonStrokeIElementIImageIImageButtonIImageSourcePartIPaddingIRadButtonITextITextButtonITextStyleITransformIView...

Inherited Members NavigationViewButton.StylePropertyNavigationViewButton.OnHandlerChanged()NavigationViewButton.StyleRadButton.BackgroundImagePropertyRadButton.BorderThicknessPropertyRadButton.HorizontalContentAlignmentPropertyRadButton.VerticalContentAlignmentPropertyRadButton.BackgroundImageRadButton.BorderThicknessRadButton.HorizontalContentAlignmentRadButton.VerticalContentAlignment...

Constructors

Initializes a new instance of the NavigationViewToggleButton class.

C#
public NavigationViewToggleButton()

Fields

IsToggledProperty

BindableProperty

Identifies the IsToggled property.

C#
public static readonly BindableProperty IsToggledProperty

Properties

Gets or sets a value indicating whether the button is toggled. If Toggled and enabled the button goes into Toggled VisualState. If Toggled and disabled the button goes into ToggledDisabled VisualState.

C#
public bool IsToggled { get; set; }

Methods

C#
protected override void ChangeVisualState()

Overrides: RadButton.ChangeVisualState()

Events

Raised when the IsToggled property has changed.

C#
public event EventHandler IsToggledChanged