c# - How to position a TextBlock always at the bottom of the view -
i want put textblock @ bottom of view inform users something. each of views height different, user use scrollviewer scroll view. 
  want no matter how long view is, textblock @ bottom of view, user need not scroll scrollbar bottom of view see message. can help?
add 2 grids. 1 purpose add view , second information text below.
<grid> <grid.rowdefinitions> <rowdefinition height="*"/> <rowdefinition height="30"/> </grid.rowdefinitions>  <!-- main grid in scrollviewer--> <scrollviewer>      <grid grid.row="0" >      </grid> </scrollviewer>  <!-- information text @ bottom --> <grid grid.row="1">     <textblock text="your message" horizontalalignment="center" verticalalignment="bottom"/> </grid>  </grid> 
Comments
Post a Comment