public NavigateViewModel(NavigateView navigateView) { _navigateView = navigateView; ModelSettingCommand = new RelayCommand(LoadSettingModel); //直接綁FirstNavigation到專案資料裡面 BindFirstNavigation(); }
private void SetNavigation(object o) { if (_navigatedlg == null) { _navigatedlg = new NavigateView(); } _navigatedlg.Owner = _mainWindow; _navigatedlg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; _navigatedlg.ShowDialog(); RestoreGridLength(); }