Пример #1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     var v = new WX.WFA.MainFrame.W_Login();
     var vm = new WX.WFA.MainFrame.VM_Login();
     v.DataContext = vm;
     vm.BindedWindow = v;
     v.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     v.Show();
     /*
     var v = new WX.WFA.MainFrame.W_MainFrame();
     var vm = new WX.WFA.MainFrame.VM_MainFrame();
     v.DataContext = vm;
     v.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     v.WindowState = WindowState.Maximized;
     v.Show();
     */
     base.OnStartup(e);
 }
Пример #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var v  = new WX.WFA.MainFrame.W_Login();
            var vm = new WX.WFA.MainFrame.VM_Login();

            v.DataContext           = vm;
            vm.BindedWindow         = v;
            v.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            v.Show();

            /*
             * var v = new WX.WFA.MainFrame.W_MainFrame();
             * var vm = new WX.WFA.MainFrame.VM_MainFrame();
             * v.DataContext = vm;
             * v.WindowStartupLocation = WindowStartupLocation.CenterScreen;
             * v.WindowState = WindowState.Maximized;
             * v.Show();
             */
            base.OnStartup(e);
        }