I recently started work on a project that should target Windows RT (C #). Having some experience working in Silverlight and WPF, I created an assembly (library) that should contain some of my UserControls, Pages, etc. For subsequent reuse.
I added a blank page for this.
Whenever I go to this page (using the navigation mechanisms), the constructor is called correctly, but there is a non-descriptive XamlParseException exception during the call to InitializeComponent ().
Message: XAML parsing failed InnerException : null StackTrace: at Windows.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation) at Project.Modules.ImagesModule.Pages.CameraPage.InitializeComponent() in c:\Users\misztalm\Documents\Visual Studio 2012\Projects\VirtualEye\trunk\Sources\Project.Modules.ImagesModule\obj\Debug\Pages\MyPage.gics:line 30 at Project.Modules.ImagesModule.Pages.MyPage..ctor() in c:\Users\misztalm\Documents\Visual Studio 2012\Projects\VirtualEye\trunk\Sources\Project.Modules.ImagesModule\Pages\MyPage.xaml.cs:line 20
I cannot determine the reason for this, so I decided to ask for some recommendations.
Anyone else run into this?
winrt-xaml microsoft-metro xamlparseexception
Maciek
source share