Ejemplo n.º 1
0
 public BackgroundElementState(BackgroundElementState existingState, BackgroundElement other, RenderContext context)
 {
     props            = other.Props;
     nestedState      = other.Child.Update(existingState?.nestedState, context);
     solidColourState = context.Renderer.UpdateSolidColourElementState(existingState?.solidColourState, new SolidColourElement(new SolidColourElementProps(other.Props.Colour, b => nestedState.BoundingBox)), context);
 }
Ejemplo n.º 2
0
 public BackgroundElement(BackgroundElementProps props, IElement <IElementState> child)
 {
     this.Props = props;
     this.Child = child;
 }