public void OpenChild(InspectViewModel child, MouseButtonEventArgs e) { if (e.ClickCount >= 2) { if (child.Type != DirectoryType.File) { this._backstack.Push(this.ViewPort); if (this._forwardstack.Count > 0) { this._forwardstack.Clear(); } for (int i = 0; i < ViewPort.Children.Count; i++) { if (ViewPort.Children[i].FullPath == child.FullPath) { ViewPort.Children[i].Visted = true; } } this.ViewPort = child; ViewPort.Visted = true; RefreshViewPort(); } else { DirectoryStructure.OpenFileInProgramme(child.FullPath); } } }