SplitView.PaneClosing 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
// 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"/>
事件类型
注解
在此事件的处理程序中,将 SplitViewPaneClosingEventArgs.Cancel 属性设置为 true ,以便取消 SplitView 窗格关闭操作。