文本框文字颜色动态变化 [英] Textbox text color change Dynamically

查看:72
本文介绍了文本框文字颜色动态变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我选择一些文本时,单击右键选项,我想在此菜单中显示上下文菜单,当我选择颜色时,我想显示颜色选择器.选择的文本背景根据选择的颜色而变化,请帮助我吗?

Hi
When i select some text click on right option i want to show context menu in this menu i want to show colorpicker when i select color selected text background is change based on select color please help me?

推荐答案

UI中没有静态"或非动态"属性.使用Silverlight,您只需要使用属性System.Windows.Controls.Control.Background:
http://msdn.microsoft. com/en-us/library/system.windows.controls.control.background%28v = vs.95%29.aspx [
There are no "static" or "non-dynamic" properties in the UI. With Silverlight, you just need to use the property System.Windows.Controls.Control.Background:
http://msdn.microsoft.com/en-us/library/system.windows.controls.control.background%28v=vs.95%29.aspx[^].

—SA


这篇关于文本框文字颜色动态变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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