How to adjust screen when keyboard open in windows phone 8?

和自甴很熟 提交于 2019-12-04 15:35:11

Here is an example of workaround. Though this code is for WP8. You will have to make some changes to make this working for WP8.1 like :

  1. Tap in xaml will be replaced by Tapped.
  2. ((App)Application.Current).RootFrame.RenderTransform = new CompositeTransform(); will be replaced by

    Window.Current.Content.RenderTransform = new CompositeTransform();

  3. Dispatcher.BeginInvoke(() => {}will be replaced by

CoreDispatcher dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {}

let me know if you face any issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!