public ToolbarView(Widget container, ToolbarModel toolbarModel) { this.toolbarModel = toolbarModel; widget = new Widget { Layout = new VBoxLayout(), LayoutCell = new LayoutCell { StretchY = 0 } }; container.Nodes.Add(widget); DecorateToolbar(widget); }
public void Rebuild(ToolbarModel newToolbarModel) { toolbarModel = newToolbarModel; Rebuild(); }