[]
        
(Showing Draft Content)

C1.Win.Input.Styles.SwitchBaseStyle-1

SwitchBaseStyle<T> Class

The base SwitchBaseStyle<T> class represents the style for elements of the C1ToggleSwitch control.

Namespace: C1.Win.Input.Styles
Assembly: C1.Win.Input.8.dll
Syntax
public class SwitchBaseStyle<T> : BaseC1FrameworkStyle, INotifyPropertyChanged, IDisposable where T : BaseC1FrameworkStyle, new()
Type Parameters
Name Description
T

Properties

Name Description
Border

Gets or sets the thickness of the border around the element.

OffState

Gets the style containing display attributes that determine the general appearance of the element in the Off state.

OnState

Gets the style containing display attributes that determine the general appearance of the element in the On state.

Rounded

Gets or sets a value indicating whether the element is rounded or not.

Methods

Name Description
ResetBorder()

Restores the default value of the Border property.

ResetOffState()

Restores the default value of the OffState property.

ResetOnState()

Restores the default value of the OnState property.

ResetRounded()

Restores the default value of the Rounded property.

ShouldSerializeBorder()

Specifies whether to save the value of the Border property.

ShouldSerializeOffState()

Specifies whether to save the value of the OffState property.

ShouldSerializeOnState()

Specifies whether to save the value of the OnState property.

ShouldSerializeRounded()

Specifies whether to save the value of the Rounded property.