Skip to content

Commit

Permalink
Issue 163: IsSelected vs IsActive behavior changed from 3.x to 4.1/4.2
Browse files Browse the repository at this point in the history
Fix: re-integrated code from older version (removed in rev 4927453)
  • Loading branch information
triman committed Mar 6, 2021
1 parent e112df4 commit d9f162b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ internal LayoutDocumentPaneControl(LayoutDocumentPane model, bool isVirtualizing

#region Overrides

/// <summary>
/// Invoked when an unhandled SelectionChanged routed event is raised on this element. Implement this method
/// to add class handling for this event.
/// </summary>
/// <param name="e">The <see cref="SelectionChangedEventArgs"/> that contains the event data.
/// The event reports that the selection changed.</param>
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
{
base.OnSelectionChanged(e);
if (_model.SelectedContent != null)
_model.SelectedContent.IsActive = true;
}

/// <summary>
/// Invoked when an unhandled <see cref="System.Windows.UIElement.MouseLeftButtonDown"/> routed
/// event is raised on this element. Implement this method to add class handling
Expand Down

0 comments on commit d9f162b

Please sign in to comment.