문제

나는 모든 사람이 이것을 알고 있지만, 이것이 MSDN에서 무엇을하는지 실제 대답을 찾을 수 없습니다 ...

Page에 정의 된 WebPartZone가 있으면 다음과 같은 Title 속성을 설정합니다.

<WebPartPages:WebPartZone runat="server" ID="Center" Title="loc:Center">
  ...
</WebPartPages:WebPartZone>
.

이 사이트에서 다음과 같이 많은 예를 볼 수 있습니다.

렌더링 WebPartzone은 큰

데이터보기 웹 파트 위치신체 웹 파트 깃

기본 Custome WebPart는 사용자 정의 사이트 페이지에서 정적이되었습니다

"LOC :"는 현지화 (또는 아마도 위치를 의미합니까?)를 의미합니다.그러나 이것은 무엇을합니까?

도움이 되었습니까?

해결책

In SharePoint 2010 WebPartZone Title property is obsolete and DisplayTitle should be used instead.

Title property is declared as

[Obsolete("Use DisplayTitle instead.")]
    public string Title
    {
      get
      {
        return this.DisplayTitle;
      }
      set
      {
        this.HeaderText = value;
      }
    }

According to MSDN DisplayTitle property:

A string that contains the title text for a zone. The default is the value of the base HeaderText property.

DisplayTitle

DisplayTitle property value could be specified as a regular string or localization string. For case of localization string the following format is used: "loc:{ResourceKey}",for example "loc:Center"

In that case it value is retrieved by key from resource file Microsoft.SharePoint.WebPartPages.strings.resources embedded into assembly Microsoft.SharePoint.intl.dll

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top