Example #1
0
        protected override void Compile()
        {
            base.Compile();

            Toolbar.Clear();
            Page.CompileToolbar(this, Toolbar);
        }
Example #2
0
        /// <summary>
        /// Removes all display from ErrorBrowser.
        /// </summary>
        public void ClearAll()
        {
            Toolbar.Clear();

            LayoutPanel.Option  = null;
            LayoutPanel.Content = null;

            return;
        }
Example #3
0
        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);
            }
        }