top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

WP8.0 vs WP8.1: Hide soft keyboard C#?

+2 votes
464 views
WP8.0 vs WP8.1: Hide soft keyboard C#?
posted Feb 27, 2015 by Puhal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

WindowsPhone 8.0:

In WP8.0,you can easily hide the soft keyboard by focusing the other UI element.

//To hide the soft keyboard,focus the current page  
  this.Focus();  

WindowsPhone 8.1:

In WP8.1,Fortunately we have InputPane class which is available from 'Windows.UI.ViewManagement'.So InputPane class having two methods 'TryHide' & 'TryShow' for hiding as well as showing keyboard.

//To hide keyboard  
InputPane.GetForCurrentView().TryHide();  

//To show keyboard  
InputPane.GetForCurrentView().TryShow();  
answer Mar 3, 2015 by Jdk
...