使用组合框通过WPF / VB更改背景的主题/颜色 [英] Using a combo box to change the theme/colour of background with WPF/VB

查看:97
本文介绍了使用组合框通过WPF / VB更改背景的主题/颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿那里



我正在为我的大学写一个评估项目。我的目标之一是能够为我的残障用户改变表单的颜色,例如色盲。我的项目在Visual Studio 2010中使用VB(Visual Basic)语言中的所有WPF表单。在我的表单上,我目前有一个位于表单顶部的ComboBox,我在其中添加了一些样式/颜色名称(例如黄色,蓝色)。我还有Microsoft Expression blend 4,您可以在其中更改表单中对象的颜色。我喜欢使用一种工具,允许您使用渐变更改不同事物的颜色,从而允许您创建专业外观的形式。



因此我希望能够在组合框中添加一些代码,因此根据我选择的列表颜色将运行一个会改变表格中边框/网格的颜色。



如果您需要更多信息,请告诉我们,谢谢



Martyn

Hey there

I'm currently writing a project for an assessment at my college. One of my goals is to be able to change the colour of a form for a user that my have a disability like being colour blind. My project is using all WPF forms in the VB (Visual Basic) language in Visual Studio 2010. On my form I currently have a ComboBox located at the top of the form in which I have added a few style/colour names to it (E.g. Yellow, Blue). I also have Microsoft Expression blend 4, where you can change the colour of objects in your form. I like to use a tool that allows you to change the colour of different things using a gradient, thus allowing you to create professional looking forms.

I would therefore like to be able to add some code to the combo box, so depending on what colour I select of the list will run a routine that will change the colour of the borders/grids in the form.

Please let me know if you need more information and thank you

Martyn

推荐答案

使用此; http://wpftoolkit.codeplex.com/wikipage?title=ColorPicker [ ^ ]


双击在组合框选项中并在每个子代码中编写您的主题它可能需要一段时间,但非常值得


这篇关于使用组合框通过WPF / VB更改背景的主题/颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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