示例#1
0
 public ConnectorInfo(CMakeArchRenderableTarget owner, Connector connector)
 {
     this.owner = owner;
     this.connector = connector;
 }
示例#2
0
 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;
 }