InputPane.Hiding | hiding event

Applies to Windows and Windows Phone

Occurs when the input pane is about to be hidden by sliding out of view.

Syntax


function onHiding(eventArgs) { /* Your code */ }
 
// addEventListener syntax
inputPane.addEventListener("hiding", onHiding);
inputPane.removeEventListener("hiding", onHiding);
 
- or -

inputPane.onhiding = onHiding;


Event information

Delegate TypedEventHandler<InputPane, InputPaneVisibilityEventArgs>

Remarks

The system associates the input pane with the application window that was visible when you called the GetForCurrentView method. This implies that you must create a new input pane object and register for the Showing event each time you create a new window. You can use the Hiding event to undo changes you may have made to your app's layout during the Showing event.

When the system calls your event handler, the input pane has not started to slide out of view. After your event handler returns, the input pane starts to slide out of view. If your event handler doesn't respond quickly enough (within 200 milliseconds), the input pane starts to slide out of view without waiting for your event handler to return.

If you create a custom user experience for the input pane, make sure to set the EnsuredFocusedElementInView property on the event arguments to notify the app framework that you have handled the input pane event and it should not try to do so for you.

You should minimize the amount of work you do while the input pane is being hidden because multiple animations and content resizes may be happening simultaneously. The more work you do during this period affects the overall system performance, causing a poor user experience.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

See also

InputPane
InputPaneVisibilityEventArgs

 

 

Show:
© 2014 Microsoft. All rights reserved.