Show / Hide Table of Contents

Class ExtendedVisualStateManager

ExtendedVisualStateManager is a custom VisualStateManager that can smooth out the animation of layout properties. With this custom VisualStateManager, states can include changes to properties like Grid.Column, can change element heights to or from Auto, and so on. These changes will be smoothed out over time using the GeneratedDuration and GeneratedEasingFunction of the appropriate transition. See the "VisualStateManager overrides" region below for a general description of the algorithm.

Inheritance
System.Object
DependencyObject
VisualStateManager
ExtendedVisualStateManager
Inherited Members
VisualStateManager.GoToState(Control, String, Boolean)
VisualStateManager.GoToElementState(FrameworkElement, String, Boolean)
VisualStateManager.CustomVisualStateManagerProperty
VisualStateManager.GetCustomVisualStateManager(FrameworkElement)
VisualStateManager.SetCustomVisualStateManager(FrameworkElement, VisualStateManager)
VisualStateManager.GetVisualStateGroups(FrameworkElement)
VisualStateManager.RaiseCurrentStateChanging(VisualStateGroup, VisualState, VisualState, Control)
VisualStateManager.RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, Control)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Expression.Interactivity.Core
Assembly: OpenSilver.Expression.Interactions.dll
Syntax
public class ExtendedVisualStateManager : VisualStateManager, IDependencyObject

Fields

| Improve this Doc View Source

RuntimeVisibilityPropertyProperty

Visibility is shadowed by a custom attached property at runtime.

Declaration
public static readonly DependencyProperty RuntimeVisibilityPropertyProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TransitionEffectProperty

The TransitionEffect to use when the state changes.

Declaration
public static readonly DependencyProperty TransitionEffectProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

UseFluidLayoutProperty

A VisualStateGroup that can use FluidLayout or not.

Declaration
public static readonly DependencyProperty UseFluidLayoutProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

IsRunningFluidLayoutTransition

Declaration
public static bool IsRunningFluidLayoutTransition { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

GetRuntimeVisibilityProperty(DependencyObject)

Declaration
public static DependencyProperty GetRuntimeVisibilityProperty(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj
Returns
Type Description
DependencyProperty
| Improve this Doc View Source

GetTransitionEffect(DependencyObject)

Declaration
public static TransitionEffect GetTransitionEffect(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj
Returns
Type Description
TransitionEffect
| Improve this Doc View Source

GetUseFluidLayout(DependencyObject)

Declaration
public static bool GetUseFluidLayout(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

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

Declaration
protected override bool GoToStateCore(Control control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
Parameters
Type Name Description
Control control
FrameworkElement stateGroupsRoot
System.String stateName
VisualStateGroup group
VisualState state
System.Boolean useTransitions
Returns
Type Description
System.Boolean
Overrides
VisualStateManager.GoToStateCore(Control, FrameworkElement, String, VisualStateGroup, VisualState, Boolean)
| Improve this Doc View Source

SetRuntimeVisibilityProperty(DependencyObject, DependencyProperty)

Declaration
public static void SetRuntimeVisibilityProperty(DependencyObject obj, DependencyProperty value)
Parameters
Type Name Description
DependencyObject obj
DependencyProperty value
| Improve this Doc View Source

SetTransitionEffect(DependencyObject, TransitionEffect)

Declaration
public static void SetTransitionEffect(DependencyObject obj, TransitionEffect value)
Parameters
Type Name Description
DependencyObject obj
TransitionEffect value
| Improve this Doc View Source

SetUseFluidLayout(DependencyObject, Boolean)

Declaration
public static void SetUseFluidLayout(DependencyObject obj, bool value)
Parameters
Type Name Description
DependencyObject obj
System.Boolean value

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source