SPMobileListNavigation 类

指定呈现移动页或主页之外的窗体的页脚区域时使用的 <RenderingTemplate> ID。

继承层次结构

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent
        Microsoft.SharePoint.Mobile.WebControls.SPMobileTemplateSelector
          Microsoft.SharePoint.Mobile.WebControls.SPMobileListTemplateSelector
            Microsoft.SharePoint.Mobile.WebControls.SPMobileListNavigation
              Microsoft.SharePoint.Mobile.WebControls.SPMobilePostsListNavigation

命名空间:  Microsoft.SharePoint.Mobile.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class SPMobileListNavigation _
    Inherits SPMobileListTemplateSelector
用法
Dim instance As SPMobileListNavigation
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class SPMobileListNavigation : SPMobileListTemplateSelector

备注

For an overview of the role of this class in the page rendering system for mobile devices, see Mobile Page Rendering System.

不要在代码中调用SPMobileListNavigation 。记录以便进一步了解如何移动网页的呈现和如何自定义呈现方式。

<RenderingTemplate> ID 将采用以下形式。

<RenderingTemplate> ID 采用以下形式。

IntendedListUse_ListTemplateID_PageType_ Navigation

The placeholders IntendedListUse, ListTemplateID, and PageType are defined in Mobile Page Rendering System.

"导航"指示该 <RenderingTemplate> 应应用于页上的页脚部分。

因此,移动网站上的通知列表视图页的SPMobileListNavigation对象是以下。

Mobile_104_View_Navigation

此外,可能是以下。

Mobile_Announcements_View_Navigation

以下示例摘自MobileDefaultTemplates.ascx文件 (在%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\CONTROLTEMPLATES) 演示当页面类型是 DeletePage 控制页脚的呈现的标记。请注意有特定的模板,仅为注释和公告列表类型。所有其他列表类型使用 Mobile_Default_DeletePage_Navigation <RenderingTemplate>。

<SharePoint:RenderingTemplate RunAt="Server" id="MobileDeleteNavigation">
  <Template>
    <SPMobile:SPMobileListNavigation RunAt="Server" />
  </Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server" id="Mobile_Default_DeletePage_Navigation">
  <Template>
    <SPMobile:SPMobileFormDigest RunAt="Server" />
    <SPMobile:SPMobileDeleteNavigation RunAt="Server" Text="<%$Resources:wss, mobile_button_delete_text%>" BreakAfter="false" />
    <SPMobile:SPMobileCancelNavigation RunAt="Server" Text="<%$Resources:wss, mobile_button_cancel_text%>" BreakAfter="true"  />
  </Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server" id="Mobile_Comments_DeletePage_Navigation">
  <Template>
    <SPMobile:SPMobileFormDigest RunAt="Server" />
    <SPMobile:SPMobileCommentsDeleteNavigation RunAt="Server" Text="<%$Resources:wss, mobile_button_delete_text%>" BreakAfter="false" />
    <SPMobile:SPMobileCommentsCancelNavigation RunAt="Server" Text="<%$Resources:wss, mobile_button_cancel_text%>" BreakAfter="true"  />
  </Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server" id="Mobile_Posts_DeletePage_Navigation">
  <Template>
    <SPMobile:SPMobileFormDigest RunAt="Server" />
    <SPMobile:SPMobilePostsDeleteNavigation RunAt="Server" Text="<%$Resources:wss, mobile_button_delete_text%>" BreakAfter="false" />
    <SPMobile:SPMobilePostsCancelNavigation RunAt="Server" Text="<%$Resources:wss, mobile_button_cancel_text%>" />
  </Template>
</SharePoint:RenderingTemplate>

不会更改MobileDefaultTemplates.ascx或GbwMobileDefaultTemplates.ascx。页面类型和不具有 <RenderingTemplate> 的列表类型的任何组合MobileDefaultTemplates.ascx或GbwMobileDefaultTemplates.ascx中定义,您可以重写 Mobile_Default_PageType_Navigation <RenderingTemplate> 使用以下方法。

Create a custom *.ascx file in the ...\CONTROLTEMPLATES folder that contains a <RenderingTemplate> with the name Mobile_ListTemplateID_PageType_Navigation. Specify the Type or Name of a <ListTemplate> in place of ListTemplateID, and specify a particular PageType. The latter must be one of the following: "DeletePage", "DispForm", "EditForm", "NewForm", or "View". Your custom <RenderingTemplate> then calls a combination of controls that differs from those used by Mobile_Default_PageType_Navigation to render the footer. (Otherwise the customization would be pointless.)

运行时自动为首选项设置为您的自定义 <RenderingTemplate> 通过 Mobile_Default_PageType_Navigation <RenderingTemplate> MobileDefaultTemplates.ascx或GbwMobileDefaultTemplates.ascx中提供了。

For more about customizing web page footers for built-in SharePoint Foundation page types other than home pages, see Walkthrough: Customizing a Mobile List View Page.

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

SPMobileListNavigation 成员

Microsoft.SharePoint.Mobile.WebControls 命名空间

SPMoblePageNavigation

其他资源

Mobile Page Rendering System

Walkthrough: Customizing a Mobile List View Page