[PageTypeProperty(
EditCaption = "My property",
Required = true,
Type = typeof(MyCustomPropertyType)
)]
public virtual string MyProperty { get; set; }
Inside my MyCustomPropertyType (subclass of PropertyLongString), can I in any way reference my CurrentPage (which is an instance of the page type
that contains MyProperty)?
(I need this because, based on its PageTypeID, I return a slightly different PropertyDataControl). Any workaround for this?
↧
call CurrentPage from property type definition
↧