Inheritance: System.Windows.Documents.Adorner
 internal void UpdateDropIndicator(UIElement adornedElement, bool isAboveElement)
 {
     if (adorner != null && !shouldCreateNewAdorner)
     {
         //exit if nothing changed
         if (adorner.AdornedElement == adornedElement && adorner.IsAboveElement == isAboveElement)
             return;
     }
     this.Clear();
     //draw new adorner
     adorner = new ListBoxDropAdorner(adornedElement, this.adornerLayer);
     adorner.IsAboveElement = isAboveElement;
     adorner.Update();
     this.shouldCreateNewAdorner = false;
 }
Esempio n. 2
0
 internal void UpdateDropIndicator(UIElement adornedElement, bool isAboveElement)
 {
     if (adorner != null && !shouldCreateNewAdorner)
     {
         //exit if nothing changed
         if (adorner.AdornedElement == adornedElement && adorner.IsAboveElement == isAboveElement)
         {
             return;
         }
     }
     this.Clear();
     //draw new adorner
     adorner = new ListBoxDropAdorner(adornedElement, this.adornerLayer);
     adorner.IsAboveElement = isAboveElement;
     adorner.Update();
     this.shouldCreateNewAdorner = false;
 }