Sdílet prostřednictvím


TreeViewCollapsedEventArgs Class

Definition

Provides event data for the TreeView.Collapsed event.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewCollapsedEventArgs (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public ref class TreeViewCollapsedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TreeViewCollapsedEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TreeViewCollapsedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TreeViewCollapsedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TreeViewCollapsedEventArgs
Public NotInheritable Class TreeViewCollapsedEventArgs
Inheritance
Object Platform::Object IInspectable TreeViewCollapsedEventArgs
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Version history

Windows version SDK version Value added
1809 17763 Item

Properties

Item

Gets the TreeView item that is collapsed.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewCollapsedEventArgs.Item (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Node

Gets the TreeView node that is collapsed.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewCollapsedEventArgs.Node (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to