public ConnectorInfo(CMakeArchRenderableTarget owner, Connector connector) { this.owner = owner; this.connector = connector; }
private void init_conn(out Connector conn, string text) { conn = new Connector(this); canvas.Children.Add(conn); conn.Content = text; //var szTb = Draw.getTextBlockSize(text, conn.FontSize); //conn.Width = szTb.Width+5; //conn.Height = szTb.Height+5; //conn.Measure(new Size(0, 0)); //conn.Arrange(new Rect()); conn.DroppedAsSource += Conn_DroppedAsSource; conn.DroppedAsTarget += Conn_DroppedAsTarget; conn.Clicked += Conn_Clicked; }