Commit ad6ef49b authored by 潘栩锋's avatar 潘栩锋 🚴

修复 2级window打开虚拟键盘 关闭虚拟键盘后,2级window不会刷新问题。 (解决方法,关闭时让2级window向右移动一下)

parent a440b345
......@@ -178,7 +178,17 @@ namespace FLY.ControlLibrary.UI.OSK
Window window = COMMON.GetWindow(tb);
w.Owner = window;
IsKeyboardOnShow = true;
w.Closed += (s, e) => { IsKeyboardOnShow = false; };
w.Closed += (s, e) => {
IsKeyboardOnShow = false;
if (window.WindowState == WindowState.Normal) {
//当window 为2级时, 关闭虚拟键盘,window有概率不刷新
//移动一下界面。 强制令它刷新
//window.UpdateLayout() 无效
window.Left += 1;
}
};
kb.Open(tb);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment