重新定位软输入面板 [英] Reposition Soft Input Panel
问题描述
我尝试重新定位触控键盘。经过研究,我找到了命名空间"Windows.UI.WiewManagement.Core"。可能有帮助,但我找不到包裹。任何想法?
I try to reposition the touch keyboard. After research, I found the namespace "Windows.UI.WiewManagement.Core" may help, but I cannot find the package. Any Idea?
推荐答案
Hi Bo Yee Woods
> ;>
但我找不到包
看来你不能在你的项目中使用命名空间,我是对的吗?
我可以知道您项目的目标版本吗?我检查了
CoreInputView Class 来自
Windows.UI.ViewManagement.Core Namespace 一>。它需要Windows 10 build 16299.
May I know the target version of your project? I checked the CoreInputView Class from Windows.UI.ViewManagement.Core Namespace. It requires Windows 10 build 16299.
您可以将目标版本更改为16299并尝试再次使用此命名空间。
注意到,如果Min版本低于16299,使用自适应代码检查当前版本是否支持
非常重要。
喜欢这个:
// Check that the ChatWithEmoji value is present.
// (It's present starting with Windows 10, version 1607,
// the Target version for the app. This check returns false on earlier versions.)
if (ApiInformation.IsEnumNamedValuePresent("Windows.UI.Xaml.Input.InputScopeNameValue", "ChatWithoutEmoji")){
// Set new ChatWithoutEmoji InputScope if present.
scopeName.NameValue = InputScopeNameValue.ChatWithoutEmoji;
}
else
{
// Fall back to Chat InputScope.
scopeName.NameValue = InputScopeNameValue.Chat;
}
您可以在此处获得有关自适应代码的更多信息:
https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf / version-adaptive-code#adaptive-code-examples
最好的问候,
Roy
这篇关于重新定位软输入面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!