共用方式為


TabView.TabTearOutRequested Event

Definition

Occurs when the user has started to tear-out tabs from a TabView and a new window has been provided by the TabTearOutWindowRequested event.

// Register
event_token TabTearOutRequested(TypedEventHandler<TabView, TabViewTabTearOutRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void TabTearOutRequested(event_token const* cookie) const;

// Revoke with event_revoker
TabView::TabTearOutRequested_revoker TabTearOutRequested(auto_revoke_t, TypedEventHandler<TabView, TabViewTabTearOutRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<TabView,TabViewTabTearOutRequestedEventArgs> TabTearOutRequested;
function onTabTearOutRequested(eventArgs) { /* Your code */ }
tabView.addEventListener("tabtearoutrequested", onTabTearOutRequested);
tabView.removeEventListener("tabtearoutrequested", onTabTearOutRequested);
- or -
tabView.ontabtearoutrequested = onTabTearOutRequested;
Public Custom Event TabTearOutRequested As TypedEventHandler(Of TabView, TabViewTabTearOutRequestedEventArgs) 

Event Type

Remarks

Handle this event to transfer the torn-out tab data items to the window specified by NewWindowId. This is usually done by adding them to the TabItemsSource of a TabView control in that new window.

This event occurs after the TabTearOutWindowRequested event has completed (where NewWindowId is set) and only when the CanTearOutTabs property is true.

Applies to

See also