Skip to main content

TabViewTabCloseRequestedEventArgs

C# API / Fluence.Wpf

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf
public class TabViewTabCloseRequestedEventArgs : RoutedEventArgs

Event data for TabCloseRequested and CloseRequested.

Remarks: Initializes a new instance of the TabViewTabCloseRequestedEventArgs class.

Parameter routedEvent: The routed event being raised.

Parameter source: The element raising the event.

Parameter tab: The TabViewItem the user has asked to close.

Parameter item: The bound data item, or the TabViewItem itself if no data was bound.

Base type: RoutedEventArgs (including inherited WPF and .NET members)

C# source

Constructors​

TabViewTabCloseRequestedEventArgs​

public TabViewTabCloseRequestedEventArgs(RoutedEvent routedEvent, object source, TabViewItem tab, object item)

Event data for TabCloseRequested and CloseRequested.

Remarks: Initializes a new instance of the TabViewTabCloseRequestedEventArgs class.

Parameter routedEvent: The routed event being raised.

Parameter source: The element raising the event.

Parameter tab: The TabViewItem the user has asked to close.

Parameter item: The bound data item, or the TabViewItem itself if no data was bound.

Properties​

Item​

public object Item { get; }

Gets the data item bound to Tab, or the tab itself when items are declared inline.

Tab​

public TabViewItem Tab { get; }

Gets the tab container the user asked to close.

Methods​

InvokeEventHandler​

protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)

Documentation inherited from the RoutedEventArgs API.

Remarks: The routed event declares EventHandler1rather thanRoutedEventHandler, so the base implementation would fall back to DynamicInvoke`. Casting here keeps dispatch a direct call.