[]
        
(Showing Draft Content)

C1.Xamarin.Forms.Core.C1ToggleButton

C1ToggleButton Class

Represents a button that a user can expand and collapse.

Inheritance
C1ToggleButton
Namespace: C1.Xamarin.Forms.Core
Assembly: C1.Xamarin.Forms.Core.dll
Syntax
public class C1ToggleButton : View

Constructors

Name Description
C1ToggleButton()

Initializes a new instance of the C1ToggleButton class.

Fields

Name Description
BorderWidthProperty
CheckedContentProperty
CheckedImageSourceProperty
CheckedTextProperty
ColorProperty
IsCheckedProperty
IsFocusableProperty
PaddingProperty
UncheckedContentProperty
UncheckedImageSourceProperty
UncheckedTextProperty

Properties

Name Description
BorderWidth

Gets or sets the width of the border.

CheckedContent

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

CheckedImageSource

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

CheckedText

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

Color

Gets or sets the color used to paint the control.

IsChecked

Gets or sets whether the C1ToggleButton is checked.

IsFocusable

Gets or sets whether the button can receive the focus.

Padding

Gets or sets the padding of the button.

UncheckedContent

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

UncheckedImageSource

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

UncheckedText

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

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

OnChecked(EventArgs)

Raises the Checked event.

Events

Name Description
Checked

Occurs after the value of checkBox changes

Disposed

Occurs when the object is disposed.