The property LayoutPage should probably be called
LayoutPageFile since it is a string pointing to a file and not a reference to an instance of a class.
Similar to how it is in WebForms where it is MasterPageFile, while
MasterPage is a reference to an instance of a MasterPage.
View Complete Post