开发者

Sortable combo box with columns

开发者 https://www.devze.com 2022-12-13 15:53 出处:网络
I have a combo with more tha开发者_开发问答n one value in it (different bindings from the same source)

I have a combo with more tha开发者_开发问答n one value in it (different bindings from the same source) I would like to create a combo box where the user could sort by those columns and also include a header to clarify the informations

Example :

Item No | Name | Rank 00 | foo | 0 01 | bar | 2 02 | too | 1

We could sort by Item No, Name or rank.

Is it even possible?

Thanks!


Doing it with a ComboBox is definitely possible, but involves changing the entire ComboBox template such that the Popup hosts a ListView. As a simpler alternative, you might consider just using a ToggleButton and Popup, with a ListView inside the Popup.

0

精彩评论

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