Example #1
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);
            }
        }