/// <summary> /// Provides derived classes an opportunity to handle changes to the SelectedContent property. /// </summary> protected virtual void OnSelectedContentChanged(NavigatorWindowItem oldValue, NavigatorWindowItem newValue) { }
void Documents_CurrentChanged(object sender, EventArgs e) { if (_documentsSelected) SelectedContent = Documents.CurrentItem as NavigatorWindowItem; if (Documents.CurrentItem == null) return; if (_intMoveFlag) return; Debug.WriteLine(string.Format("Document current changed to {0}", (Documents.CurrentItem as NavigatorWindowItem).ItemContent.Title)); var docSelected = (Documents.CurrentItem as NavigatorWindowDocumentItem).ItemContent as DocumentContent; docSelected.Activate(); Hide(); }