ToggleSwitchTemplateSettings class

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

Inheritance

Object
  DependencyObject
    ToggleSwitchTemplateSettings

Syntax


public sealed class ToggleSwitchTemplateSettings : DependencyObject

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The ToggleSwitchTemplateSettings class has these types of members:

Methods

The ToggleSwitchTemplateSettings class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)

 

Properties

The ToggleSwitchTemplateSettings class has these properties.

PropertyAccess typeDescription

CurtainCurrentToOffOffset

Read-onlyGets the calculated value of the offset for the curtain element of the ToggleSwitch, calculated for an Off action and current switch position.

CurtainCurrentToOnOffset

Read-onlyGets the calculated value of the offset for the curtain element of the ToggleSwitch, calculated for an On action and current switch position.

CurtainOffToOnOffset

Read-onlyGets the calculated value of the offset for the curtain element of the ToggleSwitch, in Off to On direction.

CurtainOnToOffOffset

Read-onlyGets the calculated value of the offset for the curtain element of the ToggleSwitch, in On to Off direction.

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread. (Inherited from DependencyObject)

KnobCurrentToOffOffset

Read-onlyGets the calculated value of the offset for the knob element of the ToggleSwitch, calculated for an Off action and current switch position.

KnobCurrentToOnOffset

Read-onlyGets the calculated value of the offset for the knob element of the ToggleSwitch, calculated for an On action and current switch position.

KnobOffToOnOffset

Read-onlyGets the calculated value of the offset for the knob element of the ToggleSwitch, in Off to On direction.

KnobOnToOffOffset

Read-onlyGets the calculated value of the offset for the knob element of the ToggleSwitch, in On to Off direction.

 

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.winmd

See also

Object
DependencyObject

 

 

Show:
© 2015 Microsoft