开发者

Setting default text for a combo box

开发者 https://www.devze.com 2023-03-17 14:41 出处:网络
I\'m wondering if there is a way in silverlight to set a placeholder value for a combo box. The behavior I wish to achieve is such that when the combo box has no selection, a placeholder value is sho

I'm wondering if there is a way in silverlight to set a placeholder value for a combo box.

The behavior I wish to achieve is such that when the combo box has no selection, a placeholder value is shown.

This value shouldn't be displayed when the 开发者_运维技巧user clicks to open the list of values, and if the selected index is cleared, the placeholder value is shown again.

Thanks!


Have a look at this How to display default text "--Select Team --" in combo box on pageload in WPF? and this Silverlight 4 ComboBox - Binding to Nullable data (tried TargetNullValue but not working as expected)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号