VisualStateChangedEventArgs VisualStateChangedEventArgs VisualStateChangedEventArgs Class

Provides data for the CurrentStateChanging and CurrentStateChanged events.

Syntax

Declaration

public sealed class VisualStateChangedEventArgspublic sealed class VisualStateChangedEventArgsPublic NotInheritable Class VisualStateChangedEventArgs

Constructors summary

Initializes a new instance of the VisualStateChangedEventArgs class.

Properties summary

Gets the Control that is changing states.

Gets the state the Control is changing to or has changed to.

Gets the state the Control is changing from or has changed from.

Constructors

  • VisualStateChangedEventArgs()
    VisualStateChangedEventArgs()
    VisualStateChangedEventArgs()
    VisualStateChangedEventArgs()

    Initializes a new instance of the VisualStateChangedEventArgs class.

    public VisualStateChangedEventArgs()public New()Public Sub New()public VisualStateChangedEventArgs()

Properties

  • Control
    Control
    Control
    Control

    Gets the Control that is changing states.

    public Control Control { get; set; }public Control Control { get; set; }Public ReadWrite Property Control As Controlpublic Control Control { get; set; }

    Property Value

  • NewState
    NewState
    NewState
    NewState

    Gets the state the Control is changing to or has changed to.

    public VisualState NewState { get; set; }public VisualState NewState { get; set; }Public ReadWrite Property NewState As VisualStatepublic VisualState NewState { get; set; }

    Property Value

  • OldState
    OldState
    OldState
    OldState

    Gets the state the Control is changing from or has changed from.

    public VisualState OldState { get; set; }public VisualState OldState { get; set; }Public ReadWrite Property OldState As VisualStatepublic VisualState OldState { get; set; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.dll