I am doing this in c# on Windows phone. I want a TextBlock vertically center aligned in a StackPanel with height of 58. Here is what I did:
<StackPanel Height="58" VerticalAlignment="Center">
<TextBlock Text="{Binding Name}" Style="{StaticResource SubheaderTextBlockStyle}" Foreground="black" />
</StackPanel>
But it does not vertically center aligned. Can you please tell me why and how can I fix this?
Thank you.