wpf - ListView Losing Selection before Start Drag -


i got listview following. user supposed select items , dragdrop somewhere else. not require ctrl+click good. after selection made, when try start drag, left click un-selects teh item got clicked. how can make behave windows explorer, selection dont change when start drag mouse. wasted quite bit of time, tried claimed solutions out there, 1 sub class both listview , listviewitem , messing previewmouseleftbuttondown nothing has worked me. tia!

<listview selectionmode="multiple" grid.column="1" >         <listview.view>             <gridview>                 <gridviewcolumn width="25">                     <gridviewcolumn.celltemplate>                         <datatemplate>                             <checkbox ischecked="{binding path=isselected, relativesource={relativesource findancestor, ancestortype=listviewitem, ancestorlevel=1}}" />                         </datatemplate>                     </gridviewcolumn.celltemplate>                 </gridviewcolumn>                 <gridviewcolumn width="200" />             </gridview>         </listview.view>         <listview.items>             <listviewitem>1 - 1 , only</listviewitem>             <listviewitem>2 - second , only</listviewitem>             <listviewitem>3 - third , only</listviewitem>             <listviewitem>4 - 4th , only</listviewitem>             <listviewitem>5 - 5th , only</listviewitem>             <listviewitem>6 - 6ht , only</listviewitem>         </listview.items> </listview> 

i bumped answer here, , works nice. zillion guys there!


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -