Spook
Spook

Reputation: 25929

Theme resources for Windows Phone

I'm now reading about theme resources available on Windows Phone and trying to use some in my project. However, it seems, that only part of them are valid, for instance:

Error   2   The resource "PhoneFontSizeExtraLarge" could not be resolved.   

Why is it so? Is there somewhere more recent repository of theme resources?


Edit: On request - usage

<Style TargetType="Button" x:Key="BaseButton">
    <!-- ... -->
    <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeExtraLarge}" />

Upvotes: 0

Views: 231

Answers (2)

Igor Ralic
Igor Ralic

Reputation: 15006

The resource you're trying to use is available only in Windows Phone Silverlight (7.1, 8 & 8.1).

You're probably making a WinRT app, in which case that resource is not predefined.

You can find a bunch of resource definitions in Program Files (x86)\Windows Phone Kits\8.1\Include\abi\Xaml\Design\generic.xaml

Upvotes: 2

Justin Markwell
Justin Markwell

Reputation: 341

Some of the static resources we are used to in 8.0 or Silverlight builds are different in the 8.1 RT only builds. does this apply to you?

Upvotes: 1

Related Questions