diff --git a/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs b/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs index 41f136e6..8ff26149 100644 --- a/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs @@ -68,6 +68,19 @@ internal LayoutDocumentPaneControl(LayoutDocumentPane model, bool isVirtualizing #region Overrides + /// + /// Invoked when an unhandled SelectionChanged routed event is raised on this element. Implement this method + /// to add class handling for this event. + /// + /// The that contains the event data. + /// The event reports that the selection changed. + protected override void OnSelectionChanged(SelectionChangedEventArgs e) + { + base.OnSelectionChanged(e); + if (_model.SelectedContent != null) + _model.SelectedContent.IsActive = true; + } + /// /// Invoked when an unhandled routed /// event is raised on this element. Implement this method to add class handling