Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
.NET Framework Class Library for Silverlight
VisualStateManager Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Manages states and the logic for transitioning between states for controls.

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

Visual Basic (Declaration)
Public Class VisualStateManager _
    Inherits DependencyObject
Visual Basic (Usage)
Dim instance As VisualStateManager
C#
public class VisualStateManager : DependencyObject
Visual C++
public ref class VisualStateManager : public DependencyObject
JScript
public class VisualStateManager extends DependencyObject
XAML Object Element Usage
<vsm:VisualStateManager.VisualStateGroups>
oneOrMoreVisualStateGroups
</vsm:VisualStateManager.VisualStateGroups>
XAML Values
vsm

The prefix that maps to the System.Windows namespace and assembly. For the prefix vsm, the mapping is declared as xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows".

oneOrMoreVisualStateGroups

One or more object elements that is of type VisualStateGroup.

Template authors add VisualStateGroup objects the VisualStateManagerVisualStateGroups()()() attached property to represent states of a control and Control authors transition between states by calling the GoToState method.

If you want to implement your own logic for transitioning between states, you must inherit from VisualStateManager, override the GoToStateCore method, and set the VisualStateManager..::.CustomVisualStateManager attached property on the control that uses the custom logic.

System..::.Object
  System.Windows..::.DependencyObject
    System.Windows..::.VisualStateManager
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker