Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 1220ef6

Browse files
committed
OutlineView -> Fix jump to selected Item
1 parent 2f78283 commit 1220ef6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/OutlineView/DragTreeViewItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public override void OnApplyTemplate()
9494

9595
public static void OnIsSelectedChanged(DependencyObject s, DependencyPropertyChangedEventArgs e)
9696
{
97-
var el = s as FrameworkElement;
98-
if (el != null)
97+
var el = s as DragTreeViewItem;
98+
if (el != null && el.IsSelected)
9999
el.BringIntoView();
100100
}
101101

0 commit comments

Comments
 (0)