Пример #1
0
        public ComponentNode CreateAndInsertComponent(int componentId, int childIndex)
        {
            var componentElement = new ComponentNode(componentId);

            InsertLogicalChild(componentElement, childIndex);
            return(componentElement);
        }
Пример #2
0
 private void SerializeComponent(int id, ComponentNode component)
 {
     Write("[Component ( ");
     Write(id.ToString());
     WriteLine(" )]");
     _depth++;
     SerializeChildren(component);
     _depth--;
 }
Пример #3
0
 private void SerializeComponent(ComponentNode component)
 {
     Write("[Component ( ");
     Write(component.ComponentId.ToString(CultureInfo.InvariantCulture));
     WriteLine(" )]");
     _depth++;
     SerializeChildren(component);
     _depth--;
 }
Пример #4
0
        private void UpdateComponent(RenderBatch batch, int componentId, ArrayBuilderSegment <RenderTreeEdit> edits)
        {
            if (!Components.TryGetValue(componentId, out var component))
            {
                component = new ComponentNode(componentId);
                Components.Add(componentId, component);
            }

            ApplyEdits(batch, component, 0, edits);
        }