private void RemoveInsertionAdorner()
 {
     if (this.insertionAdorner != null)
     {
         this.insertionAdorner.Detach();
         this.insertionAdorner = null;
     }
 }
Example #2
0
 private void RemoveInsertionAdorner()
 {
     if (insertionAdorner != null)
     {
         insertionAdorner.Detach();
         insertionAdorner = null;
     }
 }
Example #3
0
 private void RemoveInsertionAdorner()
 {
     if (this.insertionAdorner != null)
     {
         this.insertionAdorner.Detach();
         (this.insertionAdorner.AdornedElement as TreeListViewItem).InsertingBefore = false;
         this.insertionAdorner = null;
     }
 }
Example #4
0
 private void CreateInsertionAdorner()
 {
     if (this.targetItemContainer != null)
     {
         // Here, I need to get adorner layer from targetItemContainer and not targetItemsControl.
         // This way I get the AdornerLayer within ScrollContentPresenter, and not the one under AdornerDecorator (Snoop is awesome).
         // If I used targetItemsControl, the adorner would hang out of ItemsControl when there's a horizontal scroll bar.
         var adornerLayer = AdornerLayer.GetAdornerLayer(this.targetItemContainer);
         this.insertionAdorner = new InsertionAdorner(this.hasVerticalOrientation, this.isInFirstHalf, this.targetItemContainer, adornerLayer);
     }
 }
Example #5
0
 private void RemoveInsertionAdorner()
 {
     if (insertionAdorner != null)
     {
         insertionAdorner.Detach();
         insertionAdorner = null;
     }
 }
Example #6
0
 private void CreateInsertionAdorner()
 {
     if (targetItemContainer != null)
     {
         // Here, I need to get adorner layer from targetItemContainer and not targetItemsControl.
         // This way I get the AdornerLayer within ScrollContentPresenter, and not the one under AdornerDecorator (Snoop is awesome).
         // If I used targetItemsControl, the adorner would hang out of ItemsControl when there's a horizontal scroll bar.
         AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(targetItemContainer);
         insertionAdorner = new InsertionAdorner(hasVerticalOrientation, isInFirstHalf, targetItemContainer, adornerLayer);
     }
 }
Example #7
0
 private void RemoveInsertionAdorner()
 {
     if (this.insertionAdorner != null)
     {
         this.insertionAdorner.Detach();
         (this.insertionAdorner.AdornedElement as TreeListViewItem).InsertingBefore = false;
         this.insertionAdorner = null;
     }
 }
Example #8
0
 private void RemoveInsertionAdorner()
 {
     if (this.insertionAdorner != null)
     {
         this.insertionAdorner.Detach();
         this.insertionAdorner = null;
     }
 }
        private void ShowInsertionAdorner()
        {
            if (this.targetItemContainer != null && insertionAdorner == null)
            {
                // Here, I need to get adorner layer from targetItemContainer and not targetItemsControl.
                // This way I get the AdornerLayer within ScrollContentPresenter, and not the one under AdornerDecorator (Snoop is awesome).
                // If I used targetItemsControl, the adorner would hang out of ItemsControl when there's a horizontal scroll bar.
                var adornerLayer = AdornerLayer.GetAdornerLayer(this.targetItemContainer);
                this.insertionAdorner = new InsertionAdorner(this.hasVerticalOrientation, this.isInFirstHalf, this.targetItemContainer, adornerLayer);
            }

            this.insertionAdorner.IsInFirstHalf = this.isInFirstHalf;
            this.insertionAdorner.InvalidateVisual();
        }