[XAML] RichEditBox删除颜色格式 [英] [XAML] RichEditBox removing color formatting

查看:68
本文介绍了[XAML] RichEditBox删除颜色格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了Windows 10的RichEditBox控件的问题。


我创建了一个包含TextEditBox的基本通用Windows应用程序和一些允许用户使用的按钮更改所选文本的格式。基本格式如Bold,Italic,Underline都可以很好地工作,但是当改变文本颜色时,
总是在RichEditBox重新获得焦点时恢复为默认值。


我尝试过相同的应用程序作为Windows 8.1,当焦点发生变化时保留文本颜色,因此从我的计算结果来看,这似乎是Windows 10特有的问题。



有关如何解决此问题的任何建议吗?


解决方案

Hello
NABKAB


>>我尝试使用与Windows 8.1相同的应用程序,当焦点发生变化时保留文本颜色,因此从我的计算结果来看,它似乎是Windows 10特有的问题。


请与我们分享一些代码或repro演示项目吗?有了这个,我们可以理解你遇到的情况,看看我们是否可以为你提供一些解决方法。


问候。


I'm having a problem with the RichEditBox control for Windows 10.

I've created a basic Universal Windows app containing a TextEditBox and some buttons to allow the user to change formatting of the selected text. Basic formatting such as Bold, Italic, Underline all works perfectly however when changing the text color it always reverts to default when the RichEditBox regains focus.

I've tried the same app as a Windows 8.1 and the text color is retained when the focus changes so from what i've worked out it seems to be an issue specific to Windows 10.

Any suggestions on how to get around this?

解决方案

Hello NABKAB,

>> I've tried the same app as a Windows 8.1 and the text color is retained when the focus changes so from what i've worked out it seems to be an issue specific to Windows 10.

Could you please share some code or a repro demo project with us? With that, we could understand you encountered scenario and to see if we could provide some workarounds for you.

Regards.


这篇关于[XAML] RichEditBox删除颜色格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆