コード例 #1
0
        private async Task OnSectionCreated(SectionCreated msg)
        {
            var notebooks = await _notebook.GetNotebooks();

            var selectedNotebook = Notebooks.Single(n => n.IsSelected);

            await DoOnUiDispatcherAsync(() =>
            {
                Notebooks.Clear();
                notebooks.ForEach(n =>
                {
                    if (n.Id == selectedNotebook.Id)
                    {
                        n.Select();
                    }
                    Notebooks.Add(n);
                });
            });
        }