mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-17 23:16:41 +08:00
右键拖动画布
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style x:Key="AIStudio.Styles.FlowchartEditor" TargetType="{x:Type controls:FlowchartEditor}">
|
||||
<Setter Property="Focusable" Value="True"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:FlowchartEditor}">
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace AIStudio.Wpf.Flowchart.Controls
|
||||
{
|
||||
if (e.PropertyName == "IsSelected")
|
||||
{
|
||||
SelectedObject = _diagramViewModel.SelectedItems?.FirstOrDefault();
|
||||
SelectedObject = _diagramViewModel.SelectedItem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,13 +248,5 @@ namespace AIStudio.Wpf.Flowchart.Controls
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected override void OnPreviewKeyDown(KeyEventArgs e)
|
||||
{
|
||||
base.OnPreviewKeyDown(e);
|
||||
|
||||
e.Handled = _diagramViewModel.ExecuteShortcut(e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user