Paul Wulff
Paul Wulff

Reputation: 53

Why the method InitializeComponent throw an error?

I have created a new SplitPage inside VS2012 and I load this page with:

this.Frame.Navigate(typeof(SplitPage), "AllGroups");

An error is throw from :

this.InitializeComponent();

Visual Studio show me this exception :

An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred
in IC2.exe but was not handled in user code
WinRT information: Cannot find a Resource with the Name/Key SubtitleTextStyle
[Line: 88 Position: 104]

If I catch the error I found the message :

Unspecified error

How can I avoid this error ?

Upvotes: 0

Views: 1917

Answers (1)

edwin
edwin

Reputation: 72

I think the problem lies in the xaml where you don't have the style in the resources that is being call "SubtitleTextStyle". You may want to check on that or remove that line away in your xaml.

Upvotes: 1

Related Questions