static void Main() { var container = new IoCContainer(); var viewModel = container.Resolve<CashRegisterViewModel>(); var view = new CashRegisterWindow(); view.DataContext = viewModel; view.WindowStartupLocation = WindowStartupLocation.CenterScreen; // view.WindowStyle = WindowStyle.None; //view.WindowState = WindowState.Maximized; var app = new Application(); app.Run(view); }