public override IElement <IElementState> Render(EmptyProps props, IComponentContext context) { return(new Line(new LineProps(LineDirection.Horizontal), MenuItemComponent.CreateElement(new MenuItemProps { Name = "File" }), MenuItemComponent.CreateElement(new MenuItemProps { Name = "Edit" }))); }
public RootComponent(EmptyProps props) : base() { }
public override IElement <IElementState> Render(EmptyProps props, IReduxComponentContext <StoreState, StoreState> context) { return(new BackgroundElement(new BackgroundElementProps(new Colour(r: 0.0f, g: 0.0f, b: 0.0f, a: 1.0f)), context.State.Clicked ? new StretchElement(this.RenderContents(context.State, context.Dispatch)) : this.RenderContents(context.State, context.Dispatch))); }
public override IElement <IElementState> Render(EmptyProps props, IComponentContext context) { return(new Line(new LineProps(LineDirection.Vertical), new TextElement(new TextElementProps("File1")), new TextElement(new TextElementProps("File2")))); }