Наследование: System.Windows.Documents.Adorner
Пример #1
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;
 }
Пример #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;
 }