c# - How to activate a ScrollBar? -
i'm starting learn how program , have problem.
making application in c # wpf.
want put scrollbar on grid , not activate it.
searched , tried several things found, have not gotten right.
window larger monitor, want put scrollbar access bottom of window.
last thing tried this.
<grid> <grid.rowdefinitions> <rowdefinition height="921*" /> <rowdefinition height="0*" /> </grid.rowdefinitions> <scrollbar height="921" horizontalalignment="left" margin="761,0,0,0" name="scrollbar1" verticalalignment="top" width="12" maximum="960" minimum="1" smallchange="1" /> </grid>
with comes scrollbar, window not move. in advance , forgive writing. made google translator.
the content wish scroll should child of scrollviewer.
<scrollviewer> <grid> <grid.rowdefinitions> <rowdefinition height="921*" /> <rowdefinition height="0*" /> </grid.rowdefinitions> </grid> </scrollviewer>
for purposes of layout, child assumed have infinite avaliable width , height. means child of scrollviewer never behave restricted space (unless set maxwidth / maxheight).
Comments
Post a Comment