C# Класс Groves.UI.VisualStateHelpers

Tools to help with VisualStates
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
VisualStateHelpers ( ) : System
Vsg_CurrentStateChanged ( object sender, VisualStateChangedEventArgs e ) : void

Описание методов

CreateNewVisualState() публичный статический Метод

Create a new VisualState with the preferred name at runtime
public static CreateNewVisualState ( string name ) : VisualState
name string name of the new VisualState
Результат Windows.UI.Xaml.VisualState

CreateNewVisualStateGroup() публичный статический Метод

Create a new VisualStateGroup with the preferred name at runtime
public static CreateNewVisualStateGroup ( string name ) : VisualStateGroup
name string name of the new VisualStateGroup
Результат Windows.UI.Xaml.VisualStateGroup

LogVisualStateChanges() публичный статический Метод

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)
Результат void

StopLogging() публичный статический Метод

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
Результат void