选中状态代码整理

This commit is contained in:
艾竹
2023-05-14 18:02:59 +08:00
parent 58359c36d4
commit 40f81b7209
17 changed files with 663 additions and 62 deletions

View File

@@ -120,14 +120,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
base.OnPreviewKeyDown(e);
}
protected override void OnLostFocus(RoutedEventArgs e)
{
if (this.DataContext is ISelectable selectable)
{
selectable.IsSelected = false;
}
}
}
public class ControlAttachProperty