public RootViewModel() { this._settingview = new SettingsView(); this._settingviewmodel = new SettingsViewModel(this._settingview, this); this._settingview.DataContext = this._settingviewmodel; this._backstack = new Stack <InspectViewModel>(); this._forwardstack = new Stack <InspectViewModel>(); ViewPort = new InspectViewModel(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), DirectoryType.MyDocuments, $"{Environment.SpecialFolder.MyDocuments}", false); RefreshViewPort(); NotifyOfPropertyChange(() => ViewPortChildren); this.Drives = new ObservableCollection <DirectoryItemViewModel>(DirectoryStructure.GetLogicalDrives().Select(e => new DirectoryItemViewModel(e.FullPath, e.Type, e.Name, e.Hidden))); DefultDirectoies(); }