async Task ExecuteLoadItemsCommand() { if (IsBusy) { return; } IsBusy = true; try { PanelsList.Clear(); //var panels = await DataStore.GetItemsAsync(true); //foreach (var panel in panels) //{ // PanelsList.Add(panel); //} } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }
private void CollapseUnpinnedPanels(ICollapsiblePanel collapsiblePanel) { PanelsList.ForEach (delegate(ICollapsiblePanel obj) { if (obj != collapsiblePanel) { if (!obj.Pinned && !obj.Collapsed) { obj.Collapsed = true; } } }); //Hack to get the layout manager to resize ColumnLayoutManager.ManagedControl.Height = ColumnLayoutManager.ManagedControl.Height + 1; ColumnLayoutManager.ManagedControl.Height = ColumnLayoutManager.ManagedControl.Height - 1; }