Share via


TreeViewExpandingEventArgs Class

Definition

Provides event data for the TreeView.Expanding event.

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

public ref class TreeViewExpandingEventArgs 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 TreeViewExpandingEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TreeViewExpandingEventArgs 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 TreeViewExpandingEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TreeViewExpandingEventArgs
Public NotInheritable Class TreeViewExpandingEventArgs
Inheritance
Object Platform::Object IInspectable TreeViewExpandingEventArgs
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 data item for the tree view node that is expanding.

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

Node

Gets the tree view node that is expanding.

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

Applies to