Detecting Visibility of InputPane


  • Is there a way to determine whether the InputPane is visible/open? When users rotate my app while a TextBox is selected, I obviously need to rearrange and resize the elements for the current orientation, and some of that depends on whether the InputPane is visible. Can someone tell me how to determine the visibility of the InputPane? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Monday, October 20, 2014 7:11 PM


  • Hi Nathan,

    We can use InputPane.OccludedRect property to know if the touch keyboard is opening or not. This property shows the region of touch keyboard. If the keyboard is opening, we can see them in the object. You can see the following code snippet.

    var touchkeyboard = InputPane.GetForCurrentView().OccludedRect;
                if (touchkeyboard.Height != 0 || touchkeyboard.Width != 0)
                else { 

    If you still have questions, please post more information about your scenario.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Tuesday, October 21, 2014 7:42 AM