线条控件

This commit is contained in:
艾竹
2023-01-25 14:42:01 +08:00
parent a01eb8825a
commit 40590bf98d
10 changed files with 1496 additions and 109 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
namespace AIStudio.Wpf.DiagramDesigner
{
public static class IsSelectedProps
{
#region IsSelected
public static readonly DependencyProperty IsSelectedProperty =
DependencyProperty.RegisterAttached("IsSelected", typeof(bool), typeof(IsSelectedProps),
new FrameworkPropertyMetadata(false));
public static bool GetIsSelected(DependencyObject d)
{
return (bool)d.GetValue(IsSelectedProperty);
}
public static void SetIsSelected(DependencyObject d, bool value)
{
d.SetValue(IsSelectedProperty, value);
}
#endregion
}
}