开发者

Themed WPF ListBox-Object looks different than ListboxItem?

开发者 https://www.devze.com 2022-12-10 09:30 出处:网络
When I use a Theme like link text in my WPF App, I开发者_运维问答 notice a difference between the Items of ListBoxes and ComboBoxes: When I add a an object of my own class to their Items Collection, t

When I use a Theme like link text in my WPF App, I开发者_运维问答 notice a difference between the Items of ListBoxes and ComboBoxes: When I add a an object of my own class to their Items Collection, the created item looks themed. If I make my own class inherit from ListBoxItem/ComboBoxItem, the resulting Visualization looks unthemed.

How can I define my own ListBoxItem/ComboBoxItem that looks themed?

0

精彩评论

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