windows phone 7 - Align TextBlock inside a ListBoxItem -


i'm developing windows phone 7 application.

i want center vertically textblock inside listboxitem. here xaml code:

<listboxitem x:name="singlegameitem" height="79" margin="10,5">     <textblock horizontalalignment="center" height="31" margin="5" textwrapping="wrap" text="textblock" verticalalignment="center" width="431" textalignment="center"/> </listboxitem> 

how can that?

the solution is:

<listbox x:name="options" margin="12,8,8,8" grid.row="1">     <listboxitem x:name="singlegameitem" height="79" margin="10,5" verticalalignment="center">         <textblock horizontalalignment="center" height="31" margin="5" textwrapping="wrap" text="textblock" verticalalignment="center" width="431" textalignment="center"/>     </listboxitem> </listbox> 

sorry.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -