CustomVisualStateManager Attached Property
Collapse the table of content
Expand the table of content

VisualStateManager.CustomVisualStateManager Attached Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the VisualStateManager that transitions between the states of a control.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

See GetCustomVisualStateManager, SetCustomVisualStateManager
<templateRoot>
  <VisualStateManager.CustomVisualStateManager>
singleCustomVisualStateManager
  </VisualStateManager.CustomVisualSstateManager>
</templateRoot>
<templateRoot VisualStateManager.CustomVisualStateManager="{StaticResource customVisualStateManagerKey}"/>

XAML Values

templateRoot

The root UIElement of content for a template applied to a control.

singleCustomVisualStateManager

An object element for a class that implements a custom VisualStateManager.

customVisualStateManagerKey

A resource key referring to an existing resource in a ResourceDictionary. The resource should be an object element instantiation of a custom VisualStateManager class.

Property Value

Type: System.Windows.VisualStateManager
The VisualStateManager that transitions between the states of a control. The default is null.

Use the CustomVisualStateManager property if you want to implement your own logic for transitioning between states. If CustomVisualStateManager is null, the VisualStateManager uses its own logic to transition between states.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft