Example #1
0
 private static void RemovePreviewAdorner()
 {
     if (s_OverlayElement != null)
     {
         AdornerLayer.GetAdornerLayer(GetTopContainer()).Remove(s_OverlayElement);
         s_OverlayElement = null;
     }
 }
Example #2
0
        private static void CreatePreviewAdorner(UIElement adornedElement, UIElement feedbackUI)
        {
            // Clear if there is an existing preview adorner
            RemovePreviewAdorner();

            AdornerLayer layer = AdornerLayer.GetAdornerLayer(GetTopContainer());

            s_OverlayElement = new DropPreviewAdorner(feedbackUI, adornedElement);
            layer.Add(s_OverlayElement);
        }
Example #3
0
 private static void RemovePreviewAdorner()
 {
     if (s_OverlayElement != null)
     {
         AdornerLayer.GetAdornerLayer(GetTopContainer()).Remove(s_OverlayElement);
         s_OverlayElement = null;
     }
 }
Example #4
0
        private static void CreatePreviewAdorner(UIElement adornedElement, UIElement feedbackUI)
        {
            // Clear if there is an existing preview adorner
            RemovePreviewAdorner();

            AdornerLayer layer = AdornerLayer.GetAdornerLayer(GetTopContainer());
            s_OverlayElement = new DropPreviewAdorner(feedbackUI, adornedElement);
            layer.Add(s_OverlayElement);
        }