private static void UpdateIsSelectedProperty(IEnumerable<ScatterViewItem> items, ScatterViewItem current) { foreach (var item in items) { if (item != current) { item.IsSelected = false; } } }
private static void UpdateZIndexProperty(IEnumerable <ScatterViewItem> items, ScatterViewItem current) { var allButCurrent = items.Where(t => t != current).OrderBy(t => t.ZIndex).ToList(); for (int i = 0; i < allButCurrent.Count; i++) { allButCurrent[i].ZIndex = i + 1; } current.ZIndex = allButCurrent.Count + 1; }
private static void UpdateZIndexProperty(IEnumerable<ScatterViewItem> items, ScatterViewItem current) { var allButCurrent = items.Where(t => t != current).OrderBy(t => t.ZIndex).ToList(); for (int i = 0; i < allButCurrent.Count; i++) { allButCurrent[i].ZIndex = i + 1; } current.ZIndex = allButCurrent.Count + 1; }
private static void UpdateIsSelectedProperty(IEnumerable <ScatterViewItem> items, ScatterViewItem current) { foreach (var item in items) { if (item != current) { item.IsSelected = false; } } }