xaml - show a label always at the bottom of the page in silverlight -


in silverlight application , have label contains copyright information.i want show label @ bottom of screen in every resolution.

<sdk:label     height="28"     x:name="label1"     width="422"     content="copyright © 2013. rights reserved." margin="253,662,252,-41" /> 

with margin able show @ bottom on screen.

how it?

you can use grid 2 rows. 1 "stretch" height="*" , second adaptable content height="auto". use horizontalalignment label :

<grid x:name="layoutroot" >     <grid.rowdefinitions>         <rowdefinition height="*" />         <rowdefinition height="auto" />     </grid.rowdefinitions>     <grid>         <!-- main content -->     </grid>     <!-- put label in row 1 : grid.row="1"-->     <!-- elastic width :) : horizontalalignment="stretch"-->     <sdk:label         grid.row="1"         height="28"         x:name="label1"         horizontalalignment="stretch"         content="copyright © 2013. rights reserved." /> </grid> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -