コード例 #1
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public TextViewNodeControl(TextViewNode node, IXmlLayoutDesigner rootDesigner)
 {
     this.node             = node;
     this.rootDesigner     = rootDesigner;
     node.PropertyChanged += (s, x) => UpdateFromNode();
     UpdateFromNode();
     MouseLeftButtonUp += (s, x) => rootDesigner.Select(this);
 }
コード例 #2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public TextViewNodeControl(TextViewNode node, IXmlLayoutDesigner rootDesigner)
 {
     this.node = node;
     this.rootDesigner = rootDesigner;
     node.PropertyChanged += (s, x) => UpdateFromNode();
     UpdateFromNode();
     MouseLeftButtonUp += (s, x) => rootDesigner.Select(this);
 }
コード例 #3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public LinearLayoutControl(LinearLayoutNode node, IXmlLayoutDesigner rootDesigner)
 {
     this.node             = node;
     this.rootDesigner     = rootDesigner;
     node.PropertyChanged += (s, x) => UpdateFromNode();
     ViewGroupChildConnector.Connect(node, this, rootDesigner);
     UpdateFromNode();
 }
コード例 #4
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public LinearLayoutControl(LinearLayoutNode node, IXmlLayoutDesigner rootDesigner)
 {
     this.node = node;
     this.rootDesigner = rootDesigner;
     node.PropertyChanged += (s, x) => UpdateFromNode();
     ViewGroupChildConnector.Connect(node, this, rootDesigner);
     UpdateFromNode();
 }
コード例 #5
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private ViewGroupChildConnector(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     this.node         = node;
     this.control      = control;
     this.rootDesigner = rootDesigner;
     // Add controls for all children now
     foreach (var childNode in node.Children)
     {
         var childControl = childNode.Accept(ControlBuilder.Instance, rootDesigner);
         control.Add(childControl);
     }
 }
コード例 #6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private ViewGroupChildConnector(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     this.node = node;
     this.control = control;
     this.rootDesigner = rootDesigner;
     // Add controls for all children now
     foreach (var childNode in node.Children)
     {
         var childControl = childNode.Accept(ControlBuilder.Instance, rootDesigner);
         control.Add(childControl);
     }
 }
コード例 #7
0
        public static void Connect(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
        {
            var connector = new ViewGroupChildConnector(node, control, rootDesigner);

            node.Children.CollectionChanged += connector.OnChildrenChanged;
        }
コード例 #8
0
 public static void Connect(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     var connector = new ViewGroupChildConnector(node, control, rootDesigner);
     node.Children.CollectionChanged += connector.OnChildrenChanged;
 }