MVC4 Mobile Classic
The AppViewPage

The appviewpage is the content page that is displayed on the right side of the application:

 

Here's the markup used to create the appviewpage:

<div data-role="wijappviewpage"> </div>

The appviewpage can contain a header in addition to its content, which you can see in the following markup:    


<div data-role="header" data-position="fixed">
       @if (IsSectionDefined("Header"))
          {
            @RenderSection("Header")
          }
            else
          {
            @*@Html.Partial("_LoginPartial")*@
                        <h2>@ViewBag.Title</h2>
           }
</div>
<div data-role="content">
       @RenderBody()
</div>    

Since this from an MVC 4 application, note the use of Razor syntax to render the sections that are outside the Layout.cshtml file.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback