webdad3
webdad3

Reputation: 9080

WP7 - StaticResource Error?

It appears that this line that is within:

<TextBlock x:Name="ItemReason" Text="{Binding Reason}" Style="{StaticResource PhoneFontSizeLarge}" />

Is triggering an error here:

private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)

I'm not quiet sure why. Any ideas?

Upvotes: 0

Views: 614

Answers (1)

Den
Den

Reputation: 16826

You're not defining the control style but rather the font size.

FontSize="{StaticResource PhoneFontSizeLarge}

This makes it right.

For future reference keep this at hand.

Upvotes: 3

Related Questions