Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/ViewModels/BaseViewModel/Connector/PartCreatedConnectorInfo.cs

40 lines
888 B
C#
Raw Normal View History

2023-01-08 09:22:37 +08:00
using System;
using System.Collections.Generic;
2023-05-03 09:59:46 +08:00
using System.Diagnostics;
2023-01-08 09:22:37 +08:00
using System.Linq;
using System.Text;
using System.Windows;
2023-01-12 23:02:53 +08:00
using AIStudio.Wpf.DiagramDesigner.Geometrys;
2023-01-08 09:22:37 +08:00
namespace AIStudio.Wpf.DiagramDesigner
{
2023-01-24 17:53:04 +08:00
public class PartCreatedConnectorInfo : ConnectorInfoBase
2023-01-08 09:22:37 +08:00
{
2023-01-27 14:54:03 +08:00
public PartCreatedConnectorInfo(double X, double Y) : this(null, X, Y)
{
}
public PartCreatedConnectorInfo(IDiagramViewModel root, double X, double Y) : base(root, ConnectorOrientation.None)
{
2023-05-03 09:59:46 +08:00
this._position = new PointBase(X, Y);
2023-01-27 14:54:03 +08:00
}
2023-05-03 09:59:46 +08:00
private PointBase _position;
2023-01-15 20:27:39 +08:00
public override PointBase Position
2023-01-08 09:22:37 +08:00
{
get
{
2023-05-03 09:59:46 +08:00
return _position;
}
set
{
SetProperty(ref _position, value);
2023-01-08 09:22:37 +08:00
}
}
}
}