using System; using System.Windows; using System.Windows.Media;// for brushes using System.IO; // for document using System.Windows.Controls; using System.Windows.Media.Imaging; namespace WpfBaseApp3 { /// /// Interaction logic for MainWindow.xaml /// public class Start_Up :Application { Start_Up() { } [STAThread] public static void Main() { // Create new instance of application subclass Start_Up app = new Start_Up(); // fetch an XAML page with a method app.ConnectXaml(); // Start running the application // app.Run(); } private void ConnectXaml() { this.StartupUri = new Uri("MainWindow.xaml", System.UriKind.RelativeOrAbsolute); } } }