[]
Represents a button that a user can expand and collapse.
public class C1ToggleButton : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject
Name | Description |
---|---|
C1ToggleButton() | Initializes a new instance of the C1ToggleButton class. |
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. |
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. |
IsCheckedChanged | Gets or sets the callback called then it 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. |
OnMouseDown | Gets or sets the callback called when mouse-down. |
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. |
Name | Description |
---|---|
BuildRenderTree(RenderTreeBuilder) | |
Dispose(bool) | |
InitializeAsync() | This method is called when the component is initialized. |
OnAfterRender(bool) | |
OnBackgroundChanged() | Called when the background changed. |
OnBorderBrushChanged() | Called when the border brush changed. |
OnBorderThicknessChanged() | Called when the border thickness changed. |
OnCornerRadiusChanged() | Called when the corner-radius changed. |
OnPaddingChanged() | Called when the padding changed. |