重新设计了创建连线时的逻辑,能够预览连接成功后的外观样式

This commit is contained in:
fengjiayi
2025-01-04 22:20:01 +08:00
parent 665a722f68
commit 702af587f9
20 changed files with 1040 additions and 277 deletions

View File

@@ -30,12 +30,7 @@ namespace Serein.Workbench.Avalonia.DataTemplates
textBlock.Margin = new Thickness(2d, -6d, 2d, -6d);
textBlock.FontSize = 12;
textBlock.PointerPressed += TextBlock_PointerPressed;
//var stackPanel = new StackPanel();
//stackPanel.Children.Add(textBlock);
//ToolTip toolTip = new ToolTip();
//toolTip.FontSize = 12;
//toolTip.Content = mdInfo.MethodAnotherName;
//textBlock.Tag = mdInfo;
textBlock.Tag = mdInfo;
return textBlock;
}
else
@@ -43,7 +38,6 @@ namespace Serein.Workbench.Avalonia.DataTemplates
var textBlock = new TextBlock() { Text = $"Binding 类型不为预期的[MethodDetailsInfo],而是[{param?.GetType()}]" };
textBlock.Margin = new Thickness(2d, -6d, 2d, -6d);
textBlock.FontSize = 12;
textBlock.PointerPressed += TextBlock_PointerPressed;
return textBlock;
}