Show / Hide Table of Contents

Class SystemVisualStateManager

Provides an extended VisualStateManager that honors system-wide animation settings and hardware capabilities. Animations are used by default if:

  • ClientAreaAnimation is true, and
  • Tier is 1 or higher.
Animations can be forcibly enabled or disabled regardless of system settings by setting UseAnimationsOverride. Use Instance to retrieve a shared instance of the state manager.

Inheritance
Object
DispatcherObject
DependencyObject
VisualStateManager
SystemVisualStateManager
Inherited Members
VisualStateManager.CustomVisualStateManagerProperty
VisualStateManager.VisualStateGroupsProperty
VisualStateManager.GoToState(FrameworkElement, String, Boolean)
VisualStateManager.GoToElementState(FrameworkElement, String, Boolean)
VisualStateManager.GetCustomVisualStateManager(FrameworkElement)
VisualStateManager.SetCustomVisualStateManager(FrameworkElement, VisualStateManager)
VisualStateManager.GetVisualStateGroups(FrameworkElement)
VisualStateManager.RaiseCurrentStateChanging(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement)
VisualStateManager.RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, FrameworkElement, FrameworkElement)
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.InvalidateProperty(DependencyProperty)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.ShouldSerializeProperty(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DispatcherObject.Dispatcher
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: PresentationTheme.Aero
Assembly: PresentationTheme.Aero.dll
Syntax
public sealed class SystemVisualStateManager : VisualStateManager

Properties

| Improve this Doc View Source

Animates

Gets a value indicating whether animations are used for state transitions.

Declaration
public bool Animates { get; }
Property Value
Type Description
Boolean
See Also
UseAnimationsOverride
| Improve this Doc View Source

Instance

Gets the global instance of the SystemVisualStateManager.

Declaration
public static SystemVisualStateManager Instance { get; }
Property Value
Type Description
SystemVisualStateManager
| Improve this Doc View Source

UseAnimationsOverride

Gets or sets a value determining whether animations are forcibly enabled or disabled.

Declaration
public bool? UseAnimationsOverride { get; set; }
Property Value
Type Description
Nullable<Boolean>

true to forcibly enable animations. false to disable animations. Use null to automatically determine whether animations should be used.

Methods

| Improve this Doc View Source

GoToStateCore(FrameworkElement, FrameworkElement, String, VisualStateGroup, VisualState, Boolean)

Declaration
protected override bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
Parameters
Type Name Description
FrameworkElement control
FrameworkElement stateGroupsRoot
String stateName
VisualStateGroup group
VisualState state
Boolean useTransitions
Returns
Type Description
Boolean
Overrides
VisualStateManager.GoToStateCore(FrameworkElement, FrameworkElement, String, VisualStateGroup, VisualState, Boolean)

Events

| Improve this Doc View Source

AnimatesChanged

Occurs when the value of the Animates property has changed.

Declaration
public event EventHandler AnimatesChanged
Event Type
Type Description
EventHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX