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.

Windows 11 Touch Keyboard pushes up content and create blank space

Md. Niaz Mahmud 171 Reputation points
2022-08-26T05:09:50.117+00:00

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;  
  
        }
Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,199 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,101 questions
0 comments No comments
{count} votes