Universal Windows Platform (UWP)
A Microsoft platform for building and publishing apps for Windows desktop devices.
2,804 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A community member has associated this post with a similar question:
[UWP] Windows 11 Touch Keyboard pushes up content and create blank space
Only moderators can edit this content.
I am developing an uwp app, in windows 11, when touch keyboard shows up, the contents is pushed up and there creates blank space between my page content and touch keyboard. When this happens, the page can be dragged and movable into blank space.This issue happens sometimes, not always. And this issue doesn't happen in windows 10. The code snippet is as follows:
private void InputPane_Showing(InputPane sender, InputPaneVisibilityEventArgs args)
{
args.EnsuredFocusedElementInView = true;
var parent = Page.Parent as FrameworkElement;
Page.Height = parent.ActualHeight - inputPane.OccludedRect.Height;
Page.VerticalAlignment = VerticalAlignment.Top;
}