wpf - 2 Listview Scroll Synchronization -
i need vertical scroll synchronized 2 listview - inside gridview in view.
only row should scrolled not header.
i have been used http://www.codeproject.com/articles/39244/scroll-synchronization
<listview name="listbox1" margin="0,0,5,0" > <listview.resources> <style targettype="scrollviewer"> <setter property="local:scrollsynchronizer.scrollgroup" value="group1" /> </style> </listview.resources> <listview.view> <gridview x:name="grid1control" > <gridviewcolumn header="12"> <gridviewcolumn.celltemplate> <datatemplate> <grid > <textbox text="123" height="30" width="120"/> </grid> </datatemplate> </gridviewcolumn.celltemplate> </gridviewcolumn> </gridview> </listview.view> </listview> <listview name="listbox2" grid.column="1" margin="5,0,0,0" > <listview.resources> <style targettype="scrollviewer"> <setter property="local:scrollsynchronizer.scrollgroup" value="group1" /> </style> </listview.resources> <listview.view> <gridview x:name="grid2control" > <gridviewcolumn header="12"> <gridviewcolumn.celltemplate> <datatemplate> <grid > <textbox text="123" height="30" width="120"/> </grid> </datatemplate> </gridviewcolumn.celltemplate> </gridviewcolumn> </gridview> </listview.view> </listview>
above code not working
Comments
Post a Comment