示例#1
0
        static void Main(string[] args)
        {
            // Example 1.
            //Window myWindow = new Window();
            //myWindow.Title = "My Simple Window";
            //myWindow.Content = "Hi there!";

            //Application myApplication = new Application();
            //myApplication.Run(myWindow);

            // Example 2.
            MyWindow myWindow = new MyWindow();
            myWindow.Show();
            Application app = new Application();
            app.Run();
        }
示例#2
0
        static void Main(string[] args)
        {
            // Example 1.
            //Window myWindow = new Window();
            //myWindow.Title = "My Simple Window";
            //myWindow.Content = "Hi there!";

            //Application myApplication = new Application();
            //myApplication.Run(myWindow);


            // Example 2.
            MyWindow myWindow = new MyWindow();

            myWindow.Show();
            Application app = new Application();

            app.Run();
        }