ToggleSwitchTemplateSettings ToggleSwitchTemplateSettings ToggleSwitchTemplateSettings ToggleSwitchTemplateSettings Class

Definition

Provides calculated values that can be referenced as TemplatedParent sources when defining templates for a ToggleSwitch control. Not intended for general use.

public : sealed class ToggleSwitchTemplateSettings : DependencyObject, IToggleSwitchTemplateSettings
public sealed class ToggleSwitchTemplateSettings : DependencyObject, IToggleSwitchTemplateSettings
Public NotInheritable Class ToggleSwitchTemplateSettings Inherits DependencyObject Implements IToggleSwitchTemplateSettings
// This class does not provide a public constructor.
Inheritance
ToggleSwitchTemplateSettingsToggleSwitchTemplateSettingsToggleSwitchTemplateSettingsToggleSwitchTemplateSettings
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

CurtainCurrentToOffOffset CurtainCurrentToOffOffset CurtainCurrentToOffOffset CurtainCurrentToOffOffset

Gets the calculated value of the offset for the "curtain" element of the ToggleSwitch, calculated for an "Off" action and current switch position.

public : double CurtainCurrentToOffOffset { get; }
public double CurtainCurrentToOffOffset { get; }
Public ReadOnly Property CurtainCurrentToOffOffset As double
var double = toggleSwitchTemplateSettings.curtainCurrentToOffOffset;
Value
double double double double

A value in pixels.

CurtainCurrentToOnOffset CurtainCurrentToOnOffset CurtainCurrentToOnOffset CurtainCurrentToOnOffset

Gets the calculated value of the offset for the "curtain" element of the ToggleSwitch, calculated for an "On" action and current switch position.

public : double CurtainCurrentToOnOffset { get; }
public double CurtainCurrentToOnOffset { get; }
Public ReadOnly Property CurtainCurrentToOnOffset As double
var double = toggleSwitchTemplateSettings.curtainCurrentToOnOffset;
Value
double double double double

A value in pixels.

CurtainOffToOnOffset CurtainOffToOnOffset CurtainOffToOnOffset CurtainOffToOnOffset

Gets the calculated value of the offset for the "curtain" element of the ToggleSwitch, in "Off" to "On" direction.

public : double CurtainOffToOnOffset { get; }
public double CurtainOffToOnOffset { get; }
Public ReadOnly Property CurtainOffToOnOffset As double
var double = toggleSwitchTemplateSettings.curtainOffToOnOffset;
Value
double double double double

A value in pixels.

CurtainOnToOffOffset CurtainOnToOffOffset CurtainOnToOffOffset CurtainOnToOffOffset

Gets the calculated value of the offset for the "curtain" element of the ToggleSwitch, in "On" to "Off" direction.

public : double CurtainOnToOffOffset { get; }
public double CurtainOnToOffOffset { get; }
Public ReadOnly Property CurtainOnToOffOffset As double
var double = toggleSwitchTemplateSettings.curtainOnToOffOffset;
Value
double double double double

A value in pixels.

KnobCurrentToOffOffset KnobCurrentToOffOffset KnobCurrentToOffOffset KnobCurrentToOffOffset

Gets the calculated value of the offset for the "knob" element of the ToggleSwitch, calculated for an "Off" action and current switch position.

public : double KnobCurrentToOffOffset { get; }
public double KnobCurrentToOffOffset { get; }
Public ReadOnly Property KnobCurrentToOffOffset As double
var double = toggleSwitchTemplateSettings.knobCurrentToOffOffset;
Value
double double double double

A value in pixels.

KnobCurrentToOnOffset KnobCurrentToOnOffset KnobCurrentToOnOffset KnobCurrentToOnOffset

Gets the calculated value of the offset for the "knob" element of the ToggleSwitch, calculated for an "On" action and current switch position.

public : double KnobCurrentToOnOffset { get; }
public double KnobCurrentToOnOffset { get; }
Public ReadOnly Property KnobCurrentToOnOffset As double
var double = toggleSwitchTemplateSettings.knobCurrentToOnOffset;
Value
double double double double

A value in pixels.

KnobOffToOnOffset KnobOffToOnOffset KnobOffToOnOffset KnobOffToOnOffset

Gets the calculated value of the offset for the "knob" element of the ToggleSwitch, in "Off" to "On" direction.

public : double KnobOffToOnOffset { get; }
public double KnobOffToOnOffset { get; }
Public ReadOnly Property KnobOffToOnOffset As double
var double = toggleSwitchTemplateSettings.knobOffToOnOffset;
Value
double double double double

A value in pixels.

KnobOnToOffOffset KnobOnToOffOffset KnobOnToOffOffset KnobOnToOffOffset

Gets the calculated value of the offset for the "knob" element of the ToggleSwitch, in "On" to "Off" direction.

public : double KnobOnToOffOffset { get; }
public double KnobOnToOffOffset { get; }
Public ReadOnly Property KnobOnToOffOffset As double
var double = toggleSwitchTemplateSettings.knobOnToOffOffset;
Value
double double double double

A value in pixels.

Dispatcher Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Inherited from DependencyObject

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also