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); }
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); }