TeachingTipClosingEventArgs 类

定义

提供 TeachingTip.Closing 事件的数据。

public ref class TeachingTipClosingEventArgs sealed
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Version(1)]
class TeachingTipClosingEventArgs final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class TeachingTipClosingEventArgs final
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class TeachingTipClosingEventArgs
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public sealed class TeachingTipClosingEventArgs
Public NotInheritable Class TeachingTipClosingEventArgs
继承
Object Platform::Object IInspectable TeachingTipClosingEventArgs
属性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute VersionAttribute ContractVersionAttribute

示例

提示

有关详细信息、设计指南和代码示例,请参阅 教学提示

WinUI 3 库应用包括大多数 WinUI 3 控件、特性和功能的交互式示例。 通过 Microsoft Store 获取应用,或在 GitHub 上获取源代码。

属性

Cancel

获取或设置一个值,该值指示是否应取消 Closing 事件。

Reason

获取一个常量,该常量指定关闭事件的原因是由于用户交互 (关闭按钮单击) 、轻量关闭还是编程关闭。

方法

GetDeferral()

获取一个延迟对象,用于管理在 Closing 事件处理程序中完成的工作。

适用于

另请参阅