wpf - Modify my ListView scrollBar -
i have default listview scrollbar , want change view:
so took scrollviewer controltemplate example msdn
<style x:key="leftscrollviewer" targettype="{x:type scrollviewer}"> <setter property="overridesdefaultstyle" value="true"/> <setter property="template"> <setter.value> <controltemplate targettype="{x:type scrollviewer}"> <grid> <grid.columndefinitions> <columndefinition width="auto"/> <columndefinition/> </grid.columndefinitions> <grid.rowdefinitions> <rowdefinition/> <rowdefinition height="auto"/> </grid.rowdefinitions> <scrollcontentpresenter grid.column="1"/> <scrollbar name="part_verticalscrollbar" value="{templatebinding verticaloffset}" maximum="{templatebinding scrollableheight}" viewportsize="{templatebinding viewportheight}" visibility="{templatebinding computedverticalscrollbarvisibility}"/> <scrollbar name="part_horizontalscrollbar" orientation="horizontal" grid.row="1" grid.column="1" value="{templatebinding horizontaloffset}" maximum="{templatebinding scrollablewidth}" viewportsize="{templatebinding viewportwidth}" visibility="{templatebinding computedhorizontalscrollbarvisibility}"/> </grid> </controltemplate> </setter.value> </setter> </style>
and out inside <window.resources>
. since new wpf want ask should next step achieve look. found this tutorial , under section large scrollbars
can see view want don't know put code , how connect new listview
appreciate
Comments
Post a Comment