Gets or sets the width of the switch in the control ToggleSwitch.

Namespace: Elysium.Parameters
Assembly: Elysium (in Elysium.dll) Version: 2.0.1042.4 (2.0.1042.4)

Syntax

C#
See GetTrackSize, SetTrackSize
Visual Basic
See GetTrackSize, SetTrackSize

Property Value

Type: Double
Width of the switch. The default value is 48px.

Remarks

Identifier fieldTrackSizeProperty
MetadataAffectsMeasure

Examples

C# Copy imageCopy
1var control = new ToggleSwitch();
2var currentValue = Parameters.ToggleSwitch.GetTrackSize(control);
3Parameters.ToggleSwitch.SetTrackSize(control, 48d);
XAML Copy imageCopy
1<ToggleSwitch params:ToggleSwitch.TrackSize="48px"/>

See Also