Hello!!
Im back, hoppe Stoyo and Slavcho remember to me lol
Here some troubles:
protected override InteractionState StartDrawCommon(Point point, MindFusion.Diagramming.Wpf.MouseButton button)
{
var state = base.StartDrawCommon(point, button);
Resizing = state != null &&
state.Action == MindFusion.Diagramming.Wpf.Action.Modify && state.AdjustmentHandle < 8;
return state;
}
Operator '<' cannot be applied to operands of type 'AdjustmentHandle' and 'int'
private void form_HitTestAdjustmentHandles(object sender, HitTestEventArgs e)
{
var node = e.Item as DiagramNode;
var size = new Size(20, 20);
Rect r = e.Item.GetBounds();
if (r.Contains(e.MousePosition))
e.HitResult = 8; //error here
if (node != null)
{
var x = e.MousePosition.X;
var y = e.MousePosition.Y;
var location = node.Bounds.Location;
var diagOffset = new Vector(location.X, location.Y);
double rotationAngle = node.RotationAngle;
Point localPoint = RotatePointAt(e.MousePosition, node.GetCenter(), -rotationAngle);
if (r.Contains(localPoint))
e.HitResult = 8; //error here
localPoint = localPoint - diagOffset;
for (int i = 0; i < 8; i++)
{
var point = CustomHandlePosition(i, node.Bounds, size);
var rect = new Rect(point, size);
if (rect.Contains(localPoint))
{
e.HitResult = i; //error here
var std = StdHandlePosition(i, node.Bounds);
MyBehavior.MouseDX = std.X - localPoint.X;
MyBehavior.MouseDY = std.Y - localPoint.Y;
break;
}
}
}
}
Cannot implicitly convert type 'int' to 'MindFusion.Diagramming.Wpf.AdjustmentHandle'
I testing with the trial version.
How much cost update?