public MainWindow(MainWindowVIewModel MainWindowVIewModel) { InitializeComponent(); DataContext = MainWindowVIewModel; Width = SystemParameters.WorkArea.Width; Height = SystemParameters.WorkArea.Height; }
private void ApplicationStartup(object sender, StartupEventArgs e) { WidgetWindowViewModel widgetWindowViewModel = new WidgetWindowViewModel(); WidgetWindow widgetWindow = new WidgetWindow(widgetWindowViewModel); widgetWindow.Show(); MainWindowVIewModel mainWindowVIewModel = new MainWindowVIewModel(); MainWindow mainWindow = new MainWindow(mainWindowVIewModel); }
public MainWindowView() { InitializeComponent(); DataContext = new MainWindowVIewModel(); }