mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-06 01:30:52 +08:00
背景为渐变色的示例
This commit is contained in:
@@ -1748,6 +1748,74 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 快捷键操作
|
||||
public bool ExecuteShortcut(KeyEventArgs e)
|
||||
{
|
||||
if (DiagramOption.ShortcutOption.SelectAll(e))
|
||||
{
|
||||
SelectAllCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Copy(e))
|
||||
{
|
||||
CopyCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Paste(e))
|
||||
{
|
||||
PasteCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Cut(e))
|
||||
{
|
||||
CutCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Undo(e))
|
||||
{
|
||||
UndoCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Redo(e))
|
||||
{
|
||||
RedoCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Delete(e))
|
||||
{
|
||||
DeleteCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.LeftMove(e))
|
||||
{
|
||||
LeftMoveCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.RightMove(e))
|
||||
{
|
||||
RightMoveCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.UpMove(e))
|
||||
{
|
||||
UpMoveCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.DownMove(e))
|
||||
{
|
||||
DownMoveCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
else if (DiagramOption.ShortcutOption.Group(e))
|
||||
{
|
||||
GroupCommand.Execute(null);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void ExecuteLockCommand(object parameter)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user