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

sangpan 1 Reputation point

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 ' >());

I receive runtime error like this:

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?

Universal Windows Platform (UWP)
{count} votes