-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathTableViewRowExpansionChangedEventArgs.cs
More file actions
34 lines (29 loc) · 961 Bytes
/
TableViewRowExpansionChangedEventArgs.cs
File metadata and controls
34 lines (29 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
namespace WinUI.TableView;
/// <summary>
/// Provides data for the <see cref="TableView.RowExpanded"/> and <see cref="TableView.RowCollapsed"/> events.
/// </summary>
public sealed class TableViewRowExpansionChangedEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="TableViewRowExpansionChangedEventArgs"/> class.
/// </summary>
public TableViewRowExpansionChangedEventArgs(object item, int index, bool isExpanded)
{
Item = item;
Index = index;
IsExpanded = isExpanded;
}
/// <summary>
/// Gets the item whose expansion state changed.
/// </summary>
public object Item { get; }
/// <summary>
/// Gets the index of the item in the display list.
/// </summary>
public int Index { get; }
/// <summary>
/// Gets a value indicating whether the item is now expanded.
/// </summary>
public bool IsExpanded { get; }
}