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