Inheritance: System.Windows.Controls.ContentControl
Beispiel #1
0
 private static void UpdateIsSelectedProperty(IEnumerable<ScatterViewItem> items, ScatterViewItem current)
 {
     foreach (var item in items)
     {
         if (item != current)
         {
             item.IsSelected = false;
         }
     }
 }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 private static void UpdateIsSelectedProperty(IEnumerable <ScatterViewItem> items, ScatterViewItem current)
 {
     foreach (var item in items)
     {
         if (item != current)
         {
             item.IsSelected = false;
         }
     }
 }