Beispiel #1
0
        private static void CreatePreviewAdorner(UIElement adornedElt, UIElement feedbackUI)
        {
            // Clear if there is an existing preview adorner
            RemovePreviewAdorner();

            AdornerLayer layer = AdornerLayer.GetAdornerLayer(GetTopContainer());
            _overlayElt = new DropPreviewAdorner(feedbackUI, adornedElt);
            layer.Add(_overlayElt);
        }
Beispiel #2
0
        private static void RemovePreviewAdorner()
        {
            try
            {
                if (_overlayElt != null)
                {
                    AdornerLayer.GetAdornerLayer(GetTopContainer()).Remove(_overlayElt);
                    _overlayElt = null;
                }
            }

            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "RemovePreviewAdorner()", "Controls\\VMuktiGrid\\DragDropManager\\DragDropManager.cs");
            }
        }
Beispiel #3
0
        private static void CreatePreviewAdorner(UIElement adornedElt, UIElement feedbackUI)
        {
            try
            {
                // Clear if there is an existing preview adorner
                RemovePreviewAdorner();

                AdornerLayer layer = AdornerLayer.GetAdornerLayer(GetTopContainer());
                _overlayElt = new DropPreviewAdorner(feedbackUI, adornedElt);
                layer.Add(_overlayElt);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "CreatePreviewAdorner()", "Controls\\VMuktiGrid\\DragDropManager\\DragDropManager.cs");
            }
        }
		private static void RemovePreviewAdorner()
		{
            try
            {
			if (_overlayElt != null)
			{
				AdornerLayer.GetAdornerLayer(GetTopContainer()).Remove(_overlayElt);
				_overlayElt = null;
			}
		}

            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "RemovePreviewAdorner()", "Controls\\VMuktiGrid\\DragDropManager\\DragDropManager.cs");
            }
        }
		private static void CreatePreviewAdorner(UIElement adornedElt, UIElement feedbackUI)
		{
            try
            {
			// Clear if there is an existing preview adorner
			RemovePreviewAdorner();

			AdornerLayer layer = AdornerLayer.GetAdornerLayer(GetTopContainer());
			_overlayElt = new DropPreviewAdorner(feedbackUI, adornedElt);
			layer.Add(_overlayElt);
		}
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "CreatePreviewAdorner()", "Controls\\VMuktiGrid\\DragDropManager\\DragDropManager.cs");
            }
        }
Beispiel #6
0
 private static void RemovePreviewAdorner()
 {
     if (_overlayElt != null)
     {
         AdornerLayer.GetAdornerLayer(GetTopContainer()).Remove(_overlayElt);
         _overlayElt = null;
     }
 }