mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-03 14:31:28 +08:00
xx
This commit is contained in:
@@ -813,6 +813,42 @@ namespace AIStudio.Wpf.DiagramDesigner
|
|||||||
return this._replaceAllCommand ?? (this._replaceAllCommand = new SimpleCommand(ExecuteEnable, this.ExecutedSearchReplaceAllCommand));
|
return this._replaceAllCommand ?? (this._replaceAllCommand = new SimpleCommand(ExecuteEnable, this.ExecutedSearchReplaceAllCommand));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private ICommand _addNextCommand;
|
||||||
|
public ICommand AddNextCommand
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._addNextCommand ?? (this._addNextCommand = new SimpleCommand(ExecuteEnable, this.ExecutedAddNextCommand));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private ICommand _removeNextCommand;
|
||||||
|
public ICommand RemoveNextCommand
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._removeNextCommand ?? (this._removeNextCommand = new SimpleCommand(ExecuteEnable, this.ExecutedRemoveNextCommand));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private ICommand _addChildCommand;
|
||||||
|
public ICommand AddChildCommand
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._addChildCommand ?? (this._addChildCommand = new SimpleCommand(ExecuteEnable, this.ExecutedAddChildCommand));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private ICommand _removeChildCommand;
|
||||||
|
public ICommand RemoveChildCommand
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._removeChildCommand ?? (this._removeChildCommand = new SimpleCommand(ExecuteEnable, this.ExecutedRemoveChildCommand));
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ctor和初始化
|
#region ctor和初始化
|
||||||
@@ -1520,6 +1556,30 @@ namespace AIStudio.Wpf.DiagramDesigner
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Block使用
|
||||||
|
private void ExecutedAddNextCommand(object parameter)
|
||||||
|
{
|
||||||
|
if (parameter is Tuple<BlockDesignerItemViewModel, BlockDesignerItemViewModel> blockTuple)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ExecutedRemoveNextCommand(object parameter)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ExecutedAddChildCommand(object parameter)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
private void ExecutedRemoveChildCommand(object parameter)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 布局
|
#region 布局
|
||||||
private void ExecuteAlignTopCommand(object parameter)
|
private void ExecuteAlignTopCommand(object parameter)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -129,8 +129,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
|||||||
System.Windows.Application.Current?.Dispatcher.BeginInvoke(new Action(async () => {
|
System.Windows.Application.Current?.Dispatcher.BeginInvoke(new Action(async () => {
|
||||||
await Task.Delay(10);
|
await Task.Delay(10);
|
||||||
AlignNext(this.Next);
|
AlignNext(this.Next);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void RemoveChild(BlockDesignerItemViewModel child)
|
public virtual void RemoveChild(BlockDesignerItemViewModel child)
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
private ICommand _addChildCommand;
|
private ICommand _addChildCommand;
|
||||||
public ICommand AddChildCommand
|
public new ICommand AddChildCommand
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user