protected override void Compile() { base.Compile(); Toolbar.Clear(); Page.CompileToolbar(this, Toolbar); }
/// <summary> /// Removes all display from ErrorBrowser. /// </summary> public void ClearAll() { Toolbar.Clear(); LayoutPanel.Option = null; LayoutPanel.Content = null; return; }
private async void StartAsync() { var mainGroup = new ToolbarGroup(0); _workspaces.OrderBy(w => w.Sequence).ForEach( w => mainGroup.Add(new ToolbarAction(this, w.DisplayName, async() => await NavigateToWorkspace(w)))); var logoutGroup = new ToolbarGroup(100) { new ToolbarAction(this, "Logout", Logout) }; Toolbar.Clear(); Toolbar.AddGroup(mainGroup); Toolbar.AddGroup(logoutGroup); var home = GetHomeScreen(); if (home != null) { await NavigateToWorkspace(home); } }