Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

call CurrentPage from property type definition

$
0
0

[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?


Viewing all articles
Browse latest Browse all 9076

Trending Articles