Geeks With Blogs

Vitaly Dilmukhametov December 2012 Entries
Windows Phone 7 TextBox style margin issue
I just found an interesting behaviour of Windows Phone 7 TextBox default template. When TextBox is disabled, inner text is rendered with margin: To reproduce it, create new Silverlight WP application and add following XAML inside default grid named “ContentPanel”: <StackPanel Margin="0,12,0,0"> <StackPanel.Resources> <Style TargetType="TextBlock"> <Setter Property="Margin" Value="25,0,25,0"/> </Style> <Style TargetType="TextBox"> <Setter Property="Margin" Value="33,0,13,0"/> ......

Posted On Tuesday, December 25, 2012 12:13 PM

Copyright © Vitus | Powered by: