Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
ad6ef49b
Commit
ad6ef49b
authored
Apr 11, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 2级window打开虚拟键盘 关闭虚拟键盘后,2级window不会刷新问题。 (解决方法,关闭时让2级window向右移动一下)
parent
a440b345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
KeyboardBehavior.cs
...trolLibrary/FLY.ControlLibrary/UI.OSK/KeyboardBehavior.cs
+11
-1
No files found.
Project.FLY.ControlLibrary/FLY.ControlLibrary/UI.OSK/KeyboardBehavior.cs
View file @
ad6ef49b
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment