On my Windows Phone app I need to change my view accordingly to my keyboard. I have several questions:
How can I identify that the keyboard is opened? Is there an e
You can access to keyboard information by Windows.UI.ViewManagement.InputPane
class. There is static method GetForCurrentView()
. It returns InputPane for current view. InputPane has events Hiding
and Showing
and property OccludedRect
which returns region that input pane is covering.
InputPane inputPane = InputPane.GetForCurrentView();
inputPane.Showing += OnInputPaneShowing;
inputPane.Hiding += OnInputPaneHiding;
Rect coveredArea = inputPane.OccludedRect;