예제 #1
0
        public IAdornerSet CreateAdornerSet(ToolBehaviorContext toolContext, SceneElement adornedElement)
        {
            BaseFrameworkElement element = adornedElement as BaseFrameworkElement;

            if (element == null)
            {
                return((IAdornerSet)null);
            }
            if (RectangleGeometryAdornerSetCreatorBase.ShouldApplyRectangleGeometryAdornerTo(adornedElement))
            {
                return(this.CreateRectangleGeometryAdornerSet(toolContext, element));
            }
            return((IAdornerSet)null);
        }
예제 #2
0
        public IAdornerSet CreateAdornerSet(ToolBehaviorContext toolContext, SceneElement adornedElement)
        {
            BaseFrameworkElement adornedElement1 = adornedElement as BaseFrameworkElement;

            if (adornedElement1 == null)
            {
                return((IAdornerSet)null);
            }
            if (this.pathEditMode == PathEditMode.ClippingPath && RectangleGeometryAdornerSetCreatorBase.ShouldApplyRectangleGeometryAdornerTo(adornedElement))
            {
                return((IAdornerSet)null);
            }
            PathEditorTarget pathEditorTarget = this.pathEditorTargetMap.GetPathEditorTarget((Base2DElement)adornedElement1, this.pathEditMode);

            if (pathEditorTarget == null)
            {
                return((IAdornerSet)null);
            }
            return((IAdornerSet) new PathAdornerSet(toolContext, adornedElement1, pathEditorTarget));
        }