/// <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);
     }
 }
Example #2
0
        /// <summary>
        /// Class ctor
        /// </summary>
        static ViewGroupNode()
        {
            var x = new ViewGroupNode();

            addStatesFromChildrenProperty = ReflectionHelper.PropertyOf(() => x.AddStatesFromChildren);
        }
 public static void Connect(ViewGroupNode node, IViewGroupNodeControl control, IXmlLayoutDesigner rootDesigner)
 {
     var connector = new ViewGroupChildConnector(node, control, rootDesigner);
     node.Children.CollectionChanged += connector.OnChildrenChanged;
 }
Example #4
0
 /// <summary>
 /// Class ctor
 /// </summary>
 static ViewGroupNode()
 {
     var x = new ViewGroupNode();
     addStatesFromChildrenProperty = ReflectionHelper.PropertyOf(() => x.AddStatesFromChildren);
 }