[]
        
(Showing Draft Content)

C1.Maui.Core.C1ToggleButton

C1ToggleButton Class

Represents a button that a user can expand and collapse.

Inheritance
C1ToggleButton
Implements
Namespace: C1.Maui.Core
Assembly: C1.Maui.Core.dll
Syntax
public class C1ToggleButton : C1View, IDisposable

Constructors

Name Description
C1ToggleButton()

Initializes a new instance of the C1ToggleButton class.

Fields

Name Description
CheckedBackgroundProperty

Identifies the CheckedBackground dependency property.

CheckedBrushProperty

Identifies the CheckedBrush dependency property.

CheckedContentProperty

Identifies the CheckedContent dependency property.

CheckedForegroundProperty

Identifies the CheckedForeground dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

IndeterminateContentProperty

Identifies the IndeterminateContent dependency property.

IsCheckedProperty

Identifies the IsChecked dependency property.

IsFocusableProperty

Identifies the IsFocusable dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

UncheckedContentProperty

Identifies the UncheckedContent dependency property.

_isFocusable

Gets or sets whether the button can receive the focus.

Properties

Name Description
CheckedBackground

Gets or sets the brush to highlight the element when the button is checked.

CheckedBrush

Gets or sets the brush to highlight the element when the button is checked.

CheckedContent

Gets or sets the content show when the button is checked.

CheckedForeground

Gets or sets the brush to highlight the element when the button is checked.

FocusBrush

Gets or sets the brush to highlight the element when the button is focused.

IndeterminateContent

Gets or sets the content shown when the button is indeterminate.

IsChecked

Gets or sets whether the C1ToggleButton is checked.

IsFocusable

Gets or sets whether the button can receive the focus.

MouseOverBrush

Gets or sets the brush to highlight the element when the mouse is over.

PressedBrush

Gets or sets the brush to highlight the element when the button is pressed.

UncheckedContent

Gets or sets the content shown when the button is unchecked.

Methods

Name Description
Dispose(bool)
OnChecked(EventArgs)

Raises the Checked event.

OnIndeterminate(EventArgs)

Raises the Indeterminate event.

OnUnchecked(EventArgs)

Raises the Unchecked event.

Events

Name Description
Checked

Occurs after the value of checkBox changes

Indeterminate

Occurs after the value of checkBox changes to indeterminate state.

Unchecked

Occurs after the value of checkBox changes