Esempio n. 1
0
 public NavigateViewModel(NavigateView navigateView)
 {
     _navigateView       = navigateView;
     ModelSettingCommand = new RelayCommand(LoadSettingModel);
     //直接綁FirstNavigation到專案資料裡面
     BindFirstNavigation();
 }
Esempio n. 2
0
        private void SetNavigation(object o)
        {
            if (_navigatedlg == null)
            {
                _navigatedlg = new NavigateView();
            }
            _navigatedlg.Owner = _mainWindow;

            _navigatedlg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;

            _navigatedlg.ShowDialog();

            RestoreGridLength();
        }