Share via


適用于 Windows 8.1) 的 DefaultTile (功能延伸模組架構

預設圖格代表開始畫面上的應用程式。 第一次安裝應用程式時,會在應用程式收到任何更新通知之前顯示此磚。 當磚沒有任何要顯示的通知時,磚會還原為此預設值。

元素階層

<VisualElements>
<DefaultTile>

語法

<DefaultTile Wide310x150Logo?   = A string between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that can't contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters can't be the first or last characters. Also, the string can contain / or \ but not both.
             Square310x310Logo? = A string between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that can't contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters can't be the first or last characters. Also, the string can contain / or \ but not both.
             Square70x70Logo?   = A string between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that can't contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters can't be the first or last characters. Also, the string can contain / or \ but not both.
             ShortName?         = A string between 1 and 40 characters in length.
             DefaultSize?       = "square150x150Logo" | "wide310x150Logo" >

  <!-- Child elements -->
  ( TileUpdate?
  & ShowNameOnTiles?
  )

</DefaultTile>

答案

? 選擇性 (零或一個) & 交錯連接器 (可能會以任何順序出現)

屬性和項目

屬性

屬性 描述 資料類型 必要 預設值
預設

標誌影像的預設大小。 Windows Phone 8.1 會忽略此值。

這個屬性可以具有下列其中一個值:

  • square150x150Logo
  • wide310x150Logo
No
ShortName

直接顯示在磚上的應用程式的簡短名稱。 這個字串可以當地語系化;如需詳細資訊,請參閱備註。

注意從 Windows 8.1 開始,會忽略這個屬性,而且在資訊清單中宣告的顯示名稱會在其位置使用。
 
長度介於1到40個字元之間的字串。 No
Square310x310Logo

標誌影像的310x310 正方形版本。

如需如何在這個屬性中指定影像的詳細資訊,請參閱備註。

長度介於1到256個字元之間的字串,以 ".jpg"、".png" 或 ". jpeg" 結尾,且不能包含下列字元: < 、 > 、:、"、|、?或 *。 在此字串中,/和字元不能是第一個或最後一個字元。 此外,此字串可以包含/或 \,但不能同時包含兩者。 No
Square70x70Logo

標誌影像的70x70 正方形版本。

如需如何在這個屬性中指定影像的詳細資訊,請參閱備註。

長度介於1到256個字元之間的字串,以 ".jpg"、".png" 或 ". jpeg" 結尾,且不能包含下列字元: < 、 > 、:、"、|、?或 *。 在此字串中,/和字元不能是第一個或最後一個字元。 此外,此字串可以包含/或 \,但不能同時包含兩者。 No
Wide310x150Logo

310x150 寬版本的標誌影像。 以寬格式顯示圖格時,就會顯示此影像。 如果未提供此影像,則磚只能以方形格式顯示,且無法接受以 寬範本類型 為基礎的通知。 使用者對於磚所使用的格式有絕佳的選擇,因此最佳做法是包含寬標誌影像。 如果提供寬標誌影像,則會一開始就會以寬格式顯示磚。 如需有關必要標誌維度的詳細資訊,請參閱 圖格大小

如需如何在這個屬性中指定影像的詳細資訊,請參閱備註。

長度介於1到256個字元之間的字串,以 ".jpg"、".png" 或 ". jpeg" 結尾,且不能包含下列字元: < 、 > 、:、"、|、?或 *。 在此字串中,/和字元不能是第一個或最後一個字元。 此外,此字串可以包含/或 \,但不能同時包含兩者。 No

 

子元素

子元素 描述
ShowNameOnTiles

描述 Windows 是否在開始畫面上顯示的磚影像上方重迭應用程式名稱。

TileUpdate

描述應用程式磚如何接收更新通知。

 

父項目

Parent 項目 描述
VisualElements

描述 UWP 應用程式的視覺層面:其預設磚、標誌影像、文字和背景色彩、初始螢幕方向、啟動顯示畫面,以及鎖定畫面磚外觀。

 

備註

您可以將Wide310x150LogoSquare310x310LogoSquare70x70Logo影像指定為影像檔案的直接路徑或作為資源。 藉由使用資源參考,您可以提供當地語系化的影像以符合不同的 UI 語言。 這項功能也可讓您將 ShortName 屬性當地語系化。 如需詳細資訊,請參閱 全球化 主題。

需求

Namespace http://schemas.microsoft.com/appx/2013/manifest