如何在 Windows Phone 8.1 通用应用程序中更改插入符号颜色 [英] How to change caret color in windows phone 8.1 universal app
本文介绍了如何在 Windows Phone 8.1 通用应用程序中更改插入符号颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Windows Phone 8.1 通用应用程序中更改文本框插入符号颜色?在 Windows Phone 8 中,我们使用 TextBox.CaretBrush 来更改插入符号颜色.但这在 Windows Phone 8.1 WinRt 中是缺失的.有没有办法改变插入符号的颜色?
How can I change textbox caret color in windows phone 8.1 universal app? in windows phone 8 we used TextBox.CaretBrush to change caret color. But this is missing in windows phone 8.1 WinRt. Is there are way to change caret color?
推荐答案
在 Windows Phone 通用应用中,我们不能再使用 CaretBrush.
In Windows Phone universal app, we can't use CaretBrush any more.
Windows Phone 8.1(Silverlight) 与 Windows Phone 8.1
但是我们可以在Focus
和UnFocus
的时候改变TextBox的背景,这样就可以看到脱字符了.
But we can change background of TextBox when Focus
and UnFocus
, So the caret can be seen.
这篇关于如何在 Windows Phone 8.1 通用应用程序中更改插入符号颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文