按下面的方式来把XAML文件包括进AP就可以了,怪怪!!!
C/C++ code#if 0//SourceXaml.SetFile(L"//default.xaml");
SourceXaml.SetFile(L"//Page.xaml");// Also set the XAML resource if you called AddResourceModuleSourceXaml.SetResource(hInstance, L"XAML", MAKEINTRESOURCE(500));#else//2009--12--18 xqh 这样就可以了!!!
SourceXaml.SetResource(hInstance,TEXT("XAML"),MAKEINTRESOURCE(IDR_XAML1));#endif
原来路径搞错了----应该为
#if 1
//SourceXaml.SetFile(L"//default.xaml");
SourceXaml.SetFile(L"\\Page.xaml");
// Also set the XAML resource if you called AddResourceModule