How to showing .xaml from static library? C++/winrt

sangpan 1 Reputation point
2020-06-05T08:14:54.657+00:00

I try to showing xaml ui with calling from library.
dynamic library was fine but static library is not.

when calling Navigate..

Navigate(xaml_typename< ' xaml Class ' >());

https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.frame.navigate?view=winrt-19041

I receive runtime error like this:

Windows.UI.Xaml.dll  
0xC0000005: Access violation reading location 0x00000000.  

I think it's relate with including resource(.xaml) but I don't know how to.

is there any solution?

https://github.com/sangpan/WinRTPractice/tree/Crash%231

Universal Windows Platform (UWP)
{count} votes