C# 如何在Windows 10中管理虚拟键盘(SIP)以适应视图控件?

C# 如何在Windows 10中管理虚拟键盘(SIP)以适应视图控件?,c#,windows-8,windows-10,C#,Windows 8,Windows 10,是否有教程或基本说明记录了如何在Windows 10中管理软输入面板(SIP)以适应视图控件 基本上,现在当虚拟键盘出现在我的Windows10手机应用程序中时,它隐藏了文本框和底部工具栏。我需要重新调整视图的控件,但无法提供有关事件、模式等的信息。请参阅: 例如: protected override void OnNavigatedTo(NavigationEventArgs e) { mInputPane = InputPane.GetForCurrentV

是否有教程或基本说明记录了如何在Windows 10中管理软输入面板(SIP)以适应视图控件

基本上,现在当虚拟键盘出现在我的Windows10手机应用程序中时,它隐藏了文本框和底部工具栏。我需要重新调整视图的控件,但无法提供有关事件、模式等的信息。

请参阅:

例如:

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        mInputPane = InputPane.GetForCurrentView();
        mInputPane.Showing += InputPane_Showing;
        mInputPane.Hiding += InputPane_Hiding; 
    }

见:

例如:

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        mInputPane = InputPane.GetForCurrentView();
        mInputPane.Showing += InputPane_Showing;
        mInputPane.Hiding += InputPane_Hiding; 
    }

    private void InputPane_Hiding(InputPane sender, InputPaneVisibilityEventArgs args)
    {
        // Keyboard has disappeared, reset the view.

        aGridRow.Height = new GridLength(0);
        args.EnsuredFocusedElementInView = true;
    }