When you create a WPF application, the start-up window is by default one from the same project (by default called Window1.xaml).
1 2 3 4 5 6 7 8 |
< Application x:Class="WpfApplication1.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Window1.xaml" > < Application.Resources > < /Application.Resources > < /Application > |
But what if you want to use a window from another project (class library)? The pack URI scheme, used by WPF, allows you to identify and load files from: the current assembly a…