CoreTextEditContext.FocusRemoved 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于強制從文字輸入控制項移除焦點時。 應用程式應該處理此事件,以據以移除文字輸入控制項的焦點。
// Register
event_token FocusRemoved(TypedEventHandler<CoreTextEditContext, IInspectable const&> const& handler) const;
// Revoke with event_token
void FocusRemoved(event_token const* cookie) const;
// Revoke with event_revoker
CoreTextEditContext::FocusRemoved_revoker FocusRemoved(auto_revoke_t, TypedEventHandler<CoreTextEditContext, IInspectable const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,object> FocusRemoved;
function onFocusRemoved(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("focusremoved", onFocusRemoved);
coreTextEditContext.removeEventListener("focusremoved", onFocusRemoved);
- or -
coreTextEditContext.onfocusremoved = onFocusRemoved;
Public Custom Event FocusRemoved As TypedEventHandler(Of CoreTextEditContext, Object)