SplitView.PaneClosing Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
// Register
event_token PaneClosing(TypedEventHandler<SplitView, SplitViewPaneClosingEventArgs const&> const& handler) const;
// Revoke with event_token
void PaneClosing(event_token const* cookie) const;
// Revoke with event_revoker
SplitView::PaneClosing_revoker PaneClosing(auto_revoke_t, TypedEventHandler<SplitView, SplitViewPaneClosingEventArgs const&> const& handler) const;
public event TypedEventHandler<SplitView,SplitViewPaneClosingEventArgs> PaneClosing;
function onPaneClosing(eventArgs) { /* Your code */ }
splitView.addEventListener("paneclosing", onPaneClosing);
splitView.removeEventListener("paneclosing", onPaneClosing);
- or -
splitView.onpaneclosing = onPaneClosing;
Public Custom Event PaneClosing As TypedEventHandler(Of SplitView, SplitViewPaneClosingEventArgs)
<SplitView PaneClosing="eventhandler"/>
Event Type
Remarks
Set the SplitViewPaneClosingEventArgs.Cancel property to true in a handler for this event in order to cancel a SplitView pane closing action.