예제 #1
0
        private dynamic CreateItemShape(string actualShapeType)
        {
            var zoneHoldingBehavior = new ZoneHoldingBehavior((Func <dynamic>)(() => _shapeFactory.Create("ContentZone", Arguments.Empty())), _workContextAccessor.GetContext().Layout);

            return(_shapeFactory.Create(actualShapeType, Arguments.Empty(), new[] { zoneHoldingBehavior }));
        }
예제 #2
0
        private dynamic CreateItemShape(string actualShapeType)
        {
            var zoneHoldingBehavior = new ZoneHoldingBehavior(() => _shapeFactory.Create("ContentZone", Arguments.Empty()));

            return(_shapeFactory.Create(actualShapeType, Arguments.Empty(), new[] { zoneHoldingBehavior }));
        }