以编程方式突出显示组合框项 [英] Programmatically highlight combobox item

查看:116
本文介绍了以编程方式突出显示组合框项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式突出显示comboboxitem?



属性IsHighlighted没有安装程序(。更改样式不够。


<如果你的目标是选择而不是高亮(IsHighlighted属性用来表示一个选定的项目),你可以设置 IsSelected 属性或父组合框的 SelectedItem SelectedValue


Is there any way to highlight comboboxitem programmatically?

Property IsHighlighted has no setter((. Changing style is not enought.

解决方案

If you goal is to select rather than highlight (the IsHighlighted property is used to indicate a selected item), you can just set the IsSelected property or the SelectedItem or SelectedValue of the parent ComboBox.

这篇关于以编程方式突出显示组合框项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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