public override void BindControlField(ControlFormResult controlForm, object value) { var attribute = new ControlGridAttribute(MinPhotos, MaxPhotos) { PropertyName = Name, LabelText = Title, PropertyType = typeof(List <MediaPart>), ShowLabelControl = false, EnabledScroll = true }; controlForm.AddProperty(Name, attribute, value); }
public override void BindControlField(ControlFormResult controlForm, object value) { var attribute = new ControlGridAttribute(0, MaxPhotos) { PropertyName = Name, LabelText = Title, PropertyType = typeof(List <PictureTooltip>), ShowLabelControl = false, EnabledScroll = true }; controlForm.RegisterExternalDataSource(Name + ".Button", "moregold", "moregrey", "moreblack", "moredarkblue", "moreblue", "morelightblue", "morelightblue2", "morewatergreen", "morelightgreen", "moregreen", "moreyellow", "moreorange", "morered", "morepurple", "moreviolet", "morelightviolet", "morefucsia"); controlForm.RegisterExternalDataSource(Name + ".Background", "bgblack", "bgwhite"); controlForm.RegisterExternalDataSource(Name + ".Round", "roundBgW", "roundBgB"); controlForm.RegisterExternalDataSource(Name + ".AnimationType", "ltr-slide", "rtl-slide", "btt-slide", "ttb-slide"); controlForm.AddProperty(Name, attribute, value); }