public ExplorerBar(string text, ThemeConfig theme, GuiWidget rightAnchorItem = null) : base(FlowDirection.TopToBottom) { this.HAnchor = HAnchor.Stretch; this.VAnchor = VAnchor.Fit; this.Margin = new BorderDouble(30, 0, 30, 15); headingBar = new FlowLayoutWidget() { }; this.AddChild(headingBar); headingBar.AddChild(theme.CreateHeading(text)); toolbar = new Toolbar(theme, rightAnchorItem) { HAnchor = HAnchor.Stretch, VAnchor = VAnchor.Fit, Padding = 8, BackgroundColor = theme.MinimalShade }; this.AddChild(toolbar); }