コード例 #1
0
 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"
     })));
 }
コード例 #2
0
 public RootComponent(EmptyProps props) : base()
 {
 }
コード例 #3
0
 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)));
 }
コード例 #4
0
 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"))));
 }