In some recent blog entries, I've shown some XAML files that reference the Petzold.Media3D library. You can also find a bunch of these "non-loose" XAML files in the Figures directory along with the downloadable code for my new book 3D Programming for Windows . I created these files in XamlCruncher 2.0. If you'd like to run these XAML files outside of XamlCruncher 2.0, they must be converted to EXEs or XBAPs. Converting to an XBAP is the easier option. Here's how: Suppose you have a XAML file named MyMasterpiece.xaml that references a DLL named MyLibrary.dll. In Visual Studio, create a new project of type XAML Browser Application named MyMasterpiece. Delete the files Readme.txt, Page1.xaml, Page1.xaml.cs, and App.xaml.cs. From the Project menu, select Add Existing Item (or right-click the Project name in the Solution Explorer and select Add and Existing Item). Add MyMasterpiece.xaml to the project. You can either copy the file to the project directory or just add a link to it. From the Project
Read More...