diff --git a/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml.cs b/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml.cs index 22b5d13..868cae5 100644 --- a/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml.cs +++ b/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml.cs @@ -22,9 +22,6 @@ namespace AIStudio.Wpf.DiagramDesigner public DiagramControl() { InitializeComponent(); - - //把资源加入全局资源 - Application.Current.Resources.Add("DefaultConnectorStyle", this.FindResource("DefaultConnectorStyle")); } public static readonly DependencyProperty ZoomValueProperty = DependencyProperty.Register(nameof(ZoomValue), typeof(double), typeof(DiagramControl), new UIPropertyMetadata(1d));