public void SetBounds() { var capOrg = _hostShape.capOrgProvider(); if (text != null) { text.SetPosForCluster(capOrg.X + textX, capOrg.Y + textY); } if (_freeDraw != null) { _freeDraw.SetPosForCluster(capOrg.X + freeDrawX, capOrg.Y + freeDrawY); } var btnOrg = HostShape.btnOrgProvider(); //btn draw Canvas.SetLeft(btnDraw, btnOrg.X); Canvas.SetTop(btnDraw, btnOrg.Y); //btn type Canvas.SetLeft(btnType, btnOrg.X + 50); Canvas.SetTop(btnType, btnOrg.Y); }
public void SetBounds() { var clustOrg = cluster.boundsProvider().TopLeft; if (text != null) { text.SetPosForCluster(clustOrg.X + textX, clustOrg.Y + textY); } if (_freeDraw != null) { _freeDraw.SetPosForCluster(clustOrg.X + freeDrawX, clustOrg.Y + freeDrawY); } //btn draw Canvas.SetLeft(btnDraw, clustOrg.X + 180); Canvas.SetTop(btnDraw, clustOrg.Y - 50); //btn type Canvas.SetLeft(btnType, clustOrg.X + 270); Canvas.SetTop(btnType, clustOrg.Y - 50); }