コード例 #1
0
 private static void RemovePreviewAdorner()
 {
     if (_overlayElt != null)
     {
         AdornerLayer.GetAdornerLayer(CurrentDropTargetAdvisor.GetTopContainer()).Remove(
             _overlayElt);
         _overlayElt = null;
     }
 }
コード例 #2
0
        /* ____________________________________________________________________
         *		Utility functions
         * ____________________________________________________________________
         */

        private static void CreatePreviewAdorner(UIElement adornedElt, UIElement feedbackUI)
        {
            if (_overlayElt != null)
            {
                return;
            }

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

            _overlayElt = new DropPreviewAdorner(feedbackUI, adornedElt);
            layer.Add(_overlayElt);
        }
コード例 #3
0
        /* ____________________________________________________________________
         *		Utility functions
         * ____________________________________________________________________
         */

        private static void CreatePreviewAdorner(UIElement adornedElt, IDataObject data)
        {
            if (_overlayElt != null)
            {
                return;
            }

            AdornerLayer layer      = AdornerLayer.GetAdornerLayer(CurrentDropTargetAdvisor.GetTopContainer());
            UIElement    feedbackUI = CurrentDropTargetAdvisor.GetVisualFeedback(data);

            _overlayElt = new DropPreviewAdorner(feedbackUI, adornedElt);
            PositionAdorner();
            layer.Add(_overlayElt);
        }
コード例 #4
0
ファイル: DragDropManager.cs プロジェクト: Ghawken/FrontView
		private static void RemovePreviewAdorner()
		{
			if (_overlayElt != null)
			{
				AdornerLayer.GetAdornerLayer(CurrentDropTargetAdvisor.GetTopContainer()).Remove(_overlayElt);
				_overlayElt = null;
			}
		}
コード例 #5
0
ファイル: DragDropManager.cs プロジェクト: Ghawken/FrontView
		/* ____________________________________________________________________
		 *		Utility functions
		 * ____________________________________________________________________
		 */

		private static void CreatePreviewAdorner(UIElement adornedElt, IDataObject data)
		{
			if (_overlayElt != null)
			{
				return;
			}

			AdornerLayer layer = AdornerLayer.GetAdornerLayer(CurrentDropTargetAdvisor.GetTopContainer());
			UIElement feedbackUI = CurrentDropTargetAdvisor.GetVisualFeedback(data);
			_overlayElt = new DropPreviewAdorner(feedbackUI, adornedElt);
			PositionAdorner();
			layer.Add(_overlayElt);
		}