public SettingsWindow(MainWindow_ViewModel main) { InitializeComponent(); DataContext = new SettingsWindow_ViewModel(main); this.Top = Screen.PrimaryScreen.Bounds.Height * 0.5 - 171; this.Left = Screen.PrimaryScreen.Bounds.Width * 0.45 - 287; }
public SettingsWindow() { InitializeComponent(); DataContext = new SettingsWindow_ViewModel(); }