wpf - 在 WinRT 中更改插入符号颜色?

标签 wpf silverlight microsoft-metro windows-runtime

因此,在 WPF 和 Silverlight 中,您可以使用 TextBox.CaretBrush 设置 TextBox 的插入符号颜色,但在 WinRT 中,他们似乎明智地删除了此属性。因此,现在如果 TextBox 是深色,则由于它默认插入符号颜色为黑色,您将看不到它,并且如果 TextBox 的背景颜色为黑色,则插入符号将完全不存在。我发现这完全不合逻辑,必须有一种方法可以改变插入符号的颜色,无论是实用的还是其他的?

有人有什么想法吗?

最佳答案

这是不可能的。您need to当文本框具有焦点时将其切换为浅色背景,以便插入符号可见。

关于wpf - 在 WinRT 中更改插入符号颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12377609/

相关文章:

windows - 从本地源安装 Windows 8 应用程序?

wpf - WPF 中 Windows 激活的 Alt-Tab 问题

c# - WPF 窗口预加载

silverlight - 带有本地数据库的浏览器 silverlight 4 应用程序可以在 Windows 或 Mac 上运行和安装吗?

c# - CheckBox 的删除线字体样式

c# - 底层连接已关闭 : Could not establish trust relationship for the SSL/TLS secure channel

c++ - 更改非 Windows 应用商店应用程序的磁贴颜色?

c# - Visual Studio 2017 xaml 设计器不可用

c# - mvvm 解决嵌套模型和 View 模型

Silverlightscaletransform调整滚动条