C# Class WinRTXamlToolkit.AwaitableUI.ControlExtensions

Extension methods for Control class.
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
GoToVisualStateAsync ( this control, FrameworkElement visualStatesHost, string stateGroupName, string stateName ) : System.Threading.Tasks.Task

Goes to specified visual state, waiting for the transition to complete.

If a state transition storyboard is not found - the task completes immediately.

Private Methods

Method Description
GetStoryboardForVisualState ( FrameworkElement visualStatesHost, string stateGroupName, string stateName ) : Storyboard

Gets the state transition storyboard for the specified state.

Method Details

GoToVisualStateAsync() public static method

Goes to specified visual state, waiting for the transition to complete.
If a state transition storyboard is not found - the task completes immediately.
public static GoToVisualStateAsync ( this control, FrameworkElement visualStatesHost, string stateGroupName, string stateName ) : System.Threading.Tasks.Task
control this /// Control to transition. ///
visualStatesHost Windows.UI.Xaml.FrameworkElement /// FrameworkElement that defines the visual states /// (usually the root of the control's template). ///
stateGroupName string /// Name of the state group /// (speeds up the search for the state transition storyboard). ///
stateName string /// State to transition to. ///
return System.Threading.Tasks.Task