Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/AttachedProperties/ConnectorStyleProps.cs
2023-01-23 15:43:44 +08:00

26 lines
691 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
namespace AIStudio.Wpf.DiagramDesigner
{
public static class ConnectorStyleProps
{
public static readonly DependencyProperty StyleProperty =
DependencyProperty.RegisterAttached("Style", typeof(Style), typeof(ConnectorStyleProps),
new FrameworkPropertyMetadata(default(Style)));
public static Style GetStyle(DependencyObject d)
{
return (Style)d.GetValue(StyleProperty);
}
public static void SetStyle(DependencyObject d, Style value)
{
d.SetValue(StyleProperty, value);
}
}
}