Barnstokkr
Barnstokkr

Reputation: 3129

Is there an aternative to PhoneTextAccentStyle in Windows Universal App (even if only in Phone)

When working in Windows Phone 8.0 I always use

<TextBlock  Text="Text in Phone's Accent Color"
            Style ="{StaticResource PhoneTextAccentStyle}"/>

to display text in the users chosen accent style.

But I am unable to find a TextBlock style in Windows Phone 8.1 / Universal that does the same.

Is there an alternative to PhoneTextAccentStyle in Windows Universal apps?

Upvotes: 1

Views: 95

Answers (1)

Chubosaurus Software
Chubosaurus Software

Reputation: 8161

It has changed to a ThemeResource

<TextBlock Text="I'm a textbox" Foreground="{ThemeResource PhoneAccentBrush}"/>

Upvotes: 1

Related Questions