public ListWindow() { InitializeComponent(); ThemeManager.Current.ThemeSyncMode = ThemeSyncMode.SyncWithAppMode; ThemeManager.Current.SyncTheme(); ListWindowViewModel vm = new ListWindowViewModel(); this.DataContext = vm; }
public ListWindowView(ListWindowViewModel viewModel) { this.ViewModel = viewModel; this.DataContext = ViewModel; InitializeComponent(); ////////////////////////////////// foreach (DataGridColumn column in Data.Columns) { if (!ViewModel.ListColumns.Contains(column.Header.ToString())) { column.Visibility = Visibility.Hidden; } } }
public void OpenListWindow() { Debug.Log("AutLogin : Success"); this.Dispatcher.BeginInvoke((Action)(() => { var v = new ListWindow(); Functions.ActiveWindow = v; var vm = new ListWindowViewModel(); v.DataContext = vm; vm.OpenLoginDialog += (() => { OpenLoginWindow(); CloseActiveWindow(v); }); vm.OpenWindow += (() => { v.Show(); }); v.AppShutdown += AppShutdown; v.Show(); })); }
public ListWindow() { InitializeComponent(); ViewModel = new ListWindowViewModel(); }