Why Don't You Use The Default TextBlock Styles

Oct 5, 2010 at 8:07 PM

I'm curious why the templates don't use the built in text styles (aka PhoneTextSmallStyle) for styling textblocks, but instead explicitly sets each FontFamily, FontSize, Foreground, etc? Doesn't seem like best practice, but maybe I'm missing something?

 

 

 

Coordinator
Oct 9, 2010 at 2:55 PM
Hi Karstenj, We tried binding all of the resource fonts, but needed to edit some margins, fonts, etc. to match the specific design style guidelines. We may have missed binding them in some places though. Can you tell us where you're suspecting it may be missing? Thanks :)
Oct 12, 2010 at 8:26 PM

Well, for example, in the dialog_boxes.xaml, there are text boxes, etc. that look like

 

<TextBlock Text="Enter password" FontSize="{StaticResource PhoneFontSizeNormal}" FontFamily="{StaticResource PhoneFontFamilyNormal}" VerticalAlignment="Top" LineHeight="31" LineStackingStrategy="BlockLineHeight" Foreground="{StaticResource PhoneSubtleBrush}" TextWrapping="Wrap" />

 

 It would be a lot cleaner if they looked like:

 

<TextBlock Text="Enter password" Style="{StaticResource PhoneTextNormalStyle}"/>

 

But from what you are saying, the System textbox styles don't match up with the UX guidelines?