VisualStateChangedEventArgs 类

定义

提供 CurrentStateChangingCurrentStateChanged 事件的数据。

public ref class VisualStateChangedEventArgs sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VisualStateChangedEventArgs final
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VisualStateChangedEventArgs
Public NotInheritable Class VisualStateChangedEventArgs
继承
Object Platform::Object IInspectable VisualStateChangedEventArgs
属性

构造函数

VisualStateChangedEventArgs()

初始化 VisualStateChangedEventArgs 类的新实例。

属性

Control

获取正在更改状态的 控件

NewState

获取 控件 正在更改为或已更改为的状态。

OldState

获取 控件 正在更改或已更改的状态。

适用于