我們開始在Windows 8中創建WPF觸摸應用程序,並最近遷移到Windows 10.我們實現的一個功能是在TextBox
獲得焦點時打開Windows鍵盤。在Windows 8中,有可能通過設置註冊表設置EdgeTargetDockedState
並啓動TabTip過程停靠鍵盤底部:打開Windows 10觸摸鍵盤停靠在WPF
string path = @"C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe";
var info = new ProcessStartInfo(path);
info.WindowStyle = ProcessWindowStyle.Maximized;
var p = new Process();
p.StartInfo = info;
p.Start();
但似乎在Windows 10的鍵盤不具有相同的被告席行爲中Windows 8.鍵盤現在覆蓋任何隱藏任何應用程序底部的最大化窗口。只調整未最大化的窗口以適應剩餘的空間。
我檢查以下鏈接,卻發現無解:
- https://superuser.com/questions/951841/windows-10-touch-keyboard-doesnt-dock-or-maximize-at-the-bottom-of-the-screen
- http://answers.microsoft.com/en-us/windows/forum/windows_10-desktop/windows-10-touch-keyboard-doesnt-dock/3c253400-568f-4e89-a253-0d7a747b5b63
可以在Windows 10鍵盤編程停靠的窗口最大化?
您是否找到解決方案? – nicruo
據我所知,當窗口最大化時,Windows 10中的鍵盤不能停靠。我已經在微軟的鏈接中詢問過這個功能可以正式申請的地方,但是還沒有得到滿意的答覆。如果這不能實現,我想我得看看'幾乎最大化'的窗口,然後打開鍵盤(這看起來像一個非常醜陋的解決方案)。 –