Table of Contents

Class ExtendedVisualStateManager

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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.

public class ExtendedVisualStateManager : VisualStateManager
Inheritance
ExtendedVisualStateManager
Inherited Members
Extension Methods

Fields

RuntimeVisibilityPropertyProperty

Visibility is shadowed by a custom attached property at runtime.

public static readonly DependencyProperty RuntimeVisibilityPropertyProperty

Field Value

DependencyProperty

TransitionEffectProperty

The TransitionEffect to use when the state changes.

public static readonly DependencyProperty TransitionEffectProperty

Field Value

DependencyProperty

UseFluidLayoutProperty

A VisualStateGroup that can use FluidLayout or not.

public static readonly DependencyProperty UseFluidLayoutProperty

Field Value

DependencyProperty

Properties

IsRunningFluidLayoutTransition

public static bool IsRunningFluidLayoutTransition { get; }

Property Value

bool

Methods

GetRuntimeVisibilityProperty(DependencyObject)

public static DependencyProperty GetRuntimeVisibilityProperty(DependencyObject obj)

Parameters

obj DependencyObject

Returns

DependencyProperty

GetTransitionEffect(DependencyObject)

public static TransitionEffect GetTransitionEffect(DependencyObject obj)

Parameters

obj DependencyObject

Returns

TransitionEffect

GetUseFluidLayout(DependencyObject)

public static bool GetUseFluidLayout(DependencyObject obj)

Parameters

obj DependencyObject

Returns

bool

GoToStateCore(FrameworkElement, FrameworkElement, string, VisualStateGroup, VisualState, bool)

Transitions a control between states.

protected override bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)

Parameters

control FrameworkElement

The control to transition between states.

stateGroupsRoot FrameworkElement

The root element that contains the VisualStateManager.

stateName string

The name of the state to transition to.

group VisualStateGroup

The VisualStateGroup that the state belongs to.

state VisualState

The representation of the state to transition to.

useTransitions bool

true to use a VisualTransition object to transition between states; otherwise, false.

Returns

bool

true if the control successfully transitioned to the new state; otherwise, false.

SetRuntimeVisibilityProperty(DependencyObject, DependencyProperty)

public static void SetRuntimeVisibilityProperty(DependencyObject obj, DependencyProperty value)

Parameters

obj DependencyObject
value DependencyProperty

SetTransitionEffect(DependencyObject, TransitionEffect)

public static void SetTransitionEffect(DependencyObject obj, TransitionEffect value)

Parameters

obj DependencyObject
value TransitionEffect

SetUseFluidLayout(DependencyObject, bool)

public static void SetUseFluidLayout(DependencyObject obj, bool value)

Parameters

obj DependencyObject
value bool