Programmatically highlight combobox item

末鹿安然 提交于 2019-12-13 04:03:06

问题


Is there any way to highlight comboboxitem programmatically?

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


回答1:


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.



来源:https://stackoverflow.com/questions/13195759/programmatically-highlight-combobox-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!