WPF Combobox: Different template in textbox and drop-downlist

前端 未结 5 1255
面向向阳花
面向向阳花 2020-11-29 05:25

This is my combo-box.

    

        
5条回答
  •  长情又很酷
    2020-11-29 06:12

    If the ComboBox's IsEditable property is set to True, you can set the "TextSearch.TextPath" property of the ComboBox to the property name you want to show. So in your case:

    
    

提交回复
热议问题