C# Класс WinRTXamlToolkit.Controls.VisualStates

Names and helpers for visual states in the controls.
Показать файл Открыть проект

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

Метод Описание
GetImplementationRoot ( DependencyObject dependencyObject ) : FrameworkElement

Gets the implementation root of the Control.

Implements Silverlight's corresponding internal property on Control.

GoToState ( Control control, bool useTransitions ) : void

Use VisualStateManager to change the visual state of the control.

TryGetVisualStateGroup ( DependencyObject dependencyObject, string groupName ) : VisualStateGroup

This method tries to get the named VisualStateGroup for the dependency object. The provided object's ImplementationRoot will be looked up in this call.

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

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

Gets the implementation root of the Control.
Implements Silverlight's corresponding internal property on Control.
public static GetImplementationRoot ( DependencyObject dependencyObject ) : FrameworkElement
dependencyObject Windows.UI.Xaml.DependencyObject The DependencyObject.
Результат Windows.UI.Xaml.FrameworkElement

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

Use VisualStateManager to change the visual state of the control.
public static GoToState ( Control control, bool useTransitions ) : void
control Windows.UI.Xaml.Controls.Control /// Control whose visual state is being changed. ///
useTransitions bool /// A value indicating whether to use transitions when updating the /// visual state, or to snap directly to the new visual state. ///
Результат void

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

This method tries to get the named VisualStateGroup for the dependency object. The provided object's ImplementationRoot will be looked up in this call.
public static TryGetVisualStateGroup ( DependencyObject dependencyObject, string groupName ) : VisualStateGroup
dependencyObject Windows.UI.Xaml.DependencyObject The dependency object.
groupName string The visual state group's name.
Результат Windows.UI.Xaml.VisualStateGroup