mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-18 15:36:36 +08:00
31 lines
796 B
C#
31 lines
796 B
C#
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
|
|
}
|
|
}
|