SetCustomVisualStateManager Method

VisualStateManager.SetCustomVisualStateManager Method

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

Sets the value of the CustomVisualStateManager attached property.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public static void SetCustomVisualStateManager(
	FrameworkElement obj,
	VisualStateManager value
)

Parameters

obj
Type: System.Windows.FrameworkElement
The object on which to set the property.
value
Type: System.Windows.VisualStateManager
The VisualStateManager that transitions between the states of a control.

ExceptionCondition
ArgumentNullException

obj is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft