wpf - How to customize the visible area of the scroll viewer's content -
the scrollviewer's default behavior is, content stops on bottom of scrollviewer's view port:
i change behavior, content can scrolled top of scroll scrollviewer's view port:
a) possible configure existing scroll viewer way?
b) if not, best way achieve behavior?
embed scrollable content in grid 3 rows. scrollable content occupies second row. other 2 have same height of scrollviewer:
<scrollviewer height="50"> <grid> <grid.rowdefinitions> <rowdefinition height="50"/> <rowdefinition height="auto"/> <rowdefinition height="50"/> </grid.rowdefinitions> <yourscrollablecontent grid.row="1"/> </grid> </scrollviewer> i've no way test in order see if code perfect, i'm sure can way :)
maybe can bind height of 2 rows height of scrollviewer:
<rowdefinition height="{binding path=height, relativesource={relativesource ancestortype=scrollviewer}}"/> 

Comments
Post a Comment