ViewPage Class

Namespace:
Weavy.Web.Views
Assembly:
Weavy.Web.dll

Base class for strongly typed views.

public abstract class ViewPage<TModel> : WebViewPage<TModel>
Inheritance:
System.Object → ViewPage

Constructors

ViewPage()

Properties

ActionName Returns the name of the currently executing Action
AreaName Returns the name of the current Area.
Back Gets or sets the url for navigating back.
BodyAttributes Attributes to render in the <body> element.
ControllerName Returns the name of the currently executing Controller
HtmlAttributes Attributes to render in the <html> element.
IsEmbedded Gets a value indicating whether the request is for an embedded action/view.
T Gets the localizer for the view.
Theme Gets the current theme settings.
Title Gets or sets the page title.
User Gets the current Weavy.Web.Views.ViewPage%601.User.
WeavyContext Gets the current WeavyContext.

Methods

InitHelpers() Initializes the HtmlLocalizer for the view
RenderBodyAttributes() Render attributes for the <body> element.
RenderHtmlAttributes() Render attributes for the <html> element.

Extension Methods

Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.