当ActionViewer的ActionElement变更时直接更新MarginCorrection_Indentation值

This commit is contained in:
于智纯
2025-09-23 21:57:27 +08:00
parent 2db765f42d
commit fff6cb8e88
2 changed files with 2 additions and 2 deletions

View File

@@ -584,7 +584,7 @@ namespace Deedy.Activity
else this.ClearValue(ElementIconPropertyKey);
}
}
this.MarginCorrection_Indentation = new Thickness(newValue.DepthLevel * ActionViewer.IndentRuler, 0, 0, 0);
if (newValue.IsLocked)
{
this.IsDraggable = false;

View File

@@ -33,7 +33,7 @@ namespace Deedy.Activity
public override DataTemplate SelectTemplate(object item, DependencyObject container)
{
this.LoadFromSource();
//TODO根据类型与契约选择特定的数据模版
return base.SelectTemplate(item, container);
}
}