C# Class Groves.UI.VisualStateHelpers

Tools to help with VisualStates
显示文件 Open project: tomzorz/Groves

Public Methods

Method Description
CreateNewVisualState ( string name ) : VisualState

Create a new VisualState with the preferred name at runtime

CreateNewVisualStateGroup ( string name ) : VisualStateGroup

Create a new VisualStateGroup with the preferred name at runtime

LogVisualStateChanges ( VisualStateGroup vsg, Action logOutput ) : void

Log state changes in a VisualStateGroup

StopLogging ( VisualStateGroup vsg = null ) : void

Removes all or a specific logger from a VisualStateGroup

Private Methods

Method Description
VisualStateHelpers ( ) : System
Vsg_CurrentStateChanged ( object sender, VisualStateChangedEventArgs e ) : void

Method Details

CreateNewVisualState() public static method

Create a new VisualState with the preferred name at runtime
public static CreateNewVisualState ( string name ) : VisualState
name string name of the new VisualState
return Windows.UI.Xaml.VisualState

CreateNewVisualStateGroup() public static method

Create a new VisualStateGroup with the preferred name at runtime
public static CreateNewVisualStateGroup ( string name ) : VisualStateGroup
name string name of the new VisualStateGroup
return Windows.UI.Xaml.VisualStateGroup

LogVisualStateChanges() public static method

Log state changes in a VisualStateGroup
public static LogVisualStateChanges ( VisualStateGroup vsg, Action logOutput ) : void
vsg Windows.UI.Xaml.VisualStateGroup VisualStateGroup
logOutput Action Output logger action (eg.: Debug.WriteLine)
return void

StopLogging() public static method

Removes all or a specific logger from a VisualStateGroup
public static StopLogging ( VisualStateGroup vsg = null ) : void
vsg Windows.UI.Xaml.VisualStateGroup specify visual state group to remove logger from that group only
return void