TabViewItem
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class TabViewItem : TabItem
A TabItem container used by TabView that renders an icon, a header, and an optional close button aligned with the WinUI 3 TabView visual language.
Base type: TabItem (including inherited WPF and .NET members)
Constructors
TabViewItem
public TabViewItem()
Creates a new TabViewItem instance.
Properties
Icon
public object Icon { get; set; }
Gets or sets the icon shown at the leading edge of the tab header. Accepts any element (typically a FontIcon or Image).
IsClosable
public bool IsClosable { get; set; }
Gets or sets whether the per-tab close button is shown for this item. Note the effective visibility still follows the owning CloseButtonOverlayMode.
Methods
OnApplyTemplate
public override void OnApplyTemplate()
Documentation inherited from the TabItem API.
Events
CloseRequested
public event EventHandler<TabViewTabCloseRequestedEventArgs> CloseRequested
Raised when the user clicks the per-tab close button. The parent TabView aggregates this into TabCloseRequested for convenience.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
IconProperty
public static readonly DependencyProperty IconProperty
Identifies the Icon dependency property.
IsClosableProperty
public static readonly DependencyProperty IsClosableProperty
Identifies the IsClosable dependency property.
Fields
CloseRequestedEvent
public static readonly RoutedEvent CloseRequestedEvent
Identifies the CloseRequested routed event.