WPF: How to customize SelectionBoxItem in ComboBox

前端 未结 4 705
执念已碎
执念已碎 2020-12-01 19:48

I want to display a custom template/item as selected item in ComboBox (this item does not actually exist in the list of items and is updated differently). This does not even

4条回答
  •  不思量自难忘°
    2020-12-01 20:09

    You need to look into Triggers and Styles. You might also want to look into some of my older questions here on StackOverflow that helped me conquer these problems:

    • Displaying Content only when ListViewItem is Selected
    • Using Styles in Windows Presentation Foundation

提交回复
热议问题