wpf - ComboBox DataTemplate Separator -


i'm trying create datatemplate class combobox displays 2 properties , separator. problem don't want see separator once selected item. current template looks this:

        <datatemplate datatype="{x:type j:person}">         <stackpanel>             <textblock text="{binding nick}" fontsize="14"></textblock>             <textblock text="{binding fullname}"></textblock>             <separator/>         </stackpanel>        </datatemplate> 

another problem separator short, doesn't span entire combobox width.

any appreciated.

to stretch separator please use horizontalcontentalignment="stretch" on combobox. regarding hiding of separator help: displaying selected item differently in combobox.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -