private bool CanResizeDesigner(ActivityDesigner designer) { if (!designer.EnableVisualResizing) { return(false); } if (designer.ParentDesigner == null) { return(true); } FreeformActivityDesigner parentDesigner = designer.ParentDesigner as FreeformActivityDesigner; return((parentDesigner != null) && parentDesigner.CanResizeContainedDesigner(designer)); }
private bool CanResizeDesigner(ActivityDesigner designer) { if (!designer.EnableVisualResizing) { return(false); } if (designer.ParentDesigner != null) { FreeformActivityDesigner freeFormDesigner = designer.ParentDesigner as FreeformActivityDesigner; if (freeFormDesigner != null) { return(freeFormDesigner.CanResizeContainedDesigner(designer)); } else { return(false); } } return(true); }