question

ApptacularApps-8305 avatar image
0 Votes"
ApptacularApps-8305 asked RichardZhang-MSFT answered

Text block style used for Settings app items

I know there are 7 different styles available but does anyone know which text block style is used for the items in the Windows 10 Settings app? I want to ensure my app gets successfully uploaded to the Store without braking any rules.

 <TextBlock Text="Header" Style="{StaticResource HeaderTextBlockStyle}"/>
 <TextBlock Text="SubHeader" Style="{StaticResource SubheaderTextBlockStyle}"/>
 <TextBlock Text="Title" Style="{StaticResource TitleTextBlockStyle}"/>
 <TextBlock Text="SubTitle" Style="{StaticResource SubtitleTextBlockStyle}"/>
 <TextBlock Text="Base" Style="{StaticResource BaseTextBlockStyle}"/>
 <TextBlock Text="Body" Style="{StaticResource BodyTextBlockStyle}"/>
 <TextBlock Text="Caption" Style="{StaticResource CaptionTextBlockStyle}"/>

10416-settings-page.png



windows-uwp
settings-page.png (30.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered

Hello,

Welcome to Microsoft Q&A

After testing, the title and description of a single setting item are {BodyTextBlockStyle} and {CaptionTextBlockStyle}.

Among them, the font color of the description is Gray (in Dark mode).

The code looks like this:

 <StackPanel>
     <TextBlock Style="{StaticResource BodyTextBlockStyle}" Text="System"/>
     <TextBlock Style="{StaticResource CaptionTextBlockStyle}" Text="Display, sound, notifications, power" Foreground="Gray" Margin="0,1.5,0,0"/>
 </StackPanel>

But in fact, the text styles provided by default are limited. You can flexibly create a variety of font styles according to your needs, in order to achieve a variety of typography.

If you want to know more about styles, you can check this document:

Thanks.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.