c# - How to add scrollview to the grid in xaml -



c# - How to add scrollview to the grid in xaml -

adding scroll view next grid works rectangle @ bottom not visible fully,i want add together scroll view content panel grid can view rectangles if more 10

<grid x:name="layoutroot" background="white" margin="0,0,0,-45"> <grid.rowdefinitions> <rowdefinition height="auto"/> <rowdefinition height="*"/> </grid.rowdefinitions> <!--titlepanel contains name of application , page title--> <stackpanel x:name="titlepanel" grid.row="0" margin="12,17,0,28"> </stackpanel> <!--contentpanel - place additional content here--> <grid x:name="contentpanel" grid.row="1" margin="12,0,12,0"> <scrollviewer > <grid> <rectangle fill="#ff283742" horizontalalignment="left" height="184" margin="10,0,0,0" stroke="black" verticalalignment="top" width="436"/> <rectangle fill="#ff876d6d" horizontalalignment="left" height="130" margin="10,192,0,0" stroke="black" verticalalignment="top" width="217"/> <rectangle fill="#ff565d41" horizontalalignment="left" height="133" margin="237,189,0,0" stroke="black" verticalalignment="top" width="209"/> <rectangle fill="#ff322929" horizontalalignment="left" height="205" margin="10,327,0,0" stroke="black" verticalalignment="top" width="436"/> <rectangle fill="#ff2f5151" horizontalalignment="left" height="98" margin="10,537,0,0" stroke="black" verticalalignment="top" width="217"/> <rectangle fill="#ff1e7870" horizontalalignment="left" height="108" margin="237,537,0,0" stroke="black" verticalalignment="top" width="209"/> </grid> </scrollviewer> </grid> </grid>

replace grid stackpanel , position rectangles,

<scrollviewer height="400" verticalscrollbarvisibility="auto" > <stackpanel verticalalignment="top" > <rectangle fill="#ff283742" horizontalalignment="left" height="184" margin="10,0,0,0" stroke="black" verticalalignment="top" width="436"/> <rectangle fill="#ff876d6d" horizontalalignment="left" height="130" margin="10,192,0,0" stroke="black" verticalalignment="top" width="217"/> <rectangle fill="#ff565d41" horizontalalignment="left" height="133" margin="237,189,0,0" stroke="black" verticalalignment="top" width="209"/> <rectangle fill="#ff322929" horizontalalignment="left" height="205" margin="10,327,0,0" stroke="black" verticalalignment="top" width="436"/> <rectangle fill="#ff2f5151" horizontalalignment="left" height="98" margin="10,537,0,0" stroke="black" verticalalignment="top" width="217"/> <rectangle fill="#ff1e7870" horizontalalignment="left" height="108" margin="237,537,0,0" stroke="black" verticalalignment="top" width="209"/> </stackpanel> </scrollviewer>

c# xaml visual-studio-2012 windows-phone-8

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -