简体   繁体   English

在C#中更改可视键盘的颜色

[英]Change color of visual keyboard in C#

Is there a way to change the visual keyboard-theme via C#? 有没有办法通过C#更改可视键盘主题? Or at least, some way to edit its properties, like background color etc? 或者至少可以通过某种方式来编辑其属性,例如背景色等?

除了InputScope (仅用于打开数字键盘等)和覆盖按键之外,当前无法更改可视Windows Phone键盘的任何部分。

Nope, this is one of those things that cannot be changed by third party applications short of various hacks (which would not be allowed in the marketplace). 不,这是第三方应用程序无法更改的事情之一,只有各种黑客手段(在市场上是不允许的)。 In general if something is controlled by a user setting then an application will have no way of changing it. 通常,如果某些事情是由用户设置控制的,则应用程序将无法对其进行更改。 You can detect whether the user has selected the light or dark theme and change the colours in your application accordingly, but your application cannot change system settings. 您可以检测用户是否选择了浅色或深色主题并相应地更改应用程序中的颜色,但是您的应用程序无法更改系统设置。

Try changing ApplicationBar or maybe Systray background and foreground colors. 尝试更改ApplicationBar或Systray背景和前景色。 I saw an app that had ApplicationBar and Systray set to white background and back foreground and the keyboard was black on white even with the dark theme. 我看到一个应用程序,其中ApplicationBar和Systray设置为白色背景和后方前景,并且即使主题为深色,键盘也是白色的黑色。 I think there may be a correlation. 我认为可能存在相关性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM