uap:DefaultTile (Windows 10)

代表 [開始] 畫面上應用程式的預設磚。 當您的應用程式未顯示磚通知時,會顯示此處指定的圖示。 若要動態變更磚的外觀並顯示相關的即時內容,請參閱 傳送本機磚通知

元素階層

<套件>

    <應用程式>

         <應用程式>

              <uap:VisualElements>

                   <uap:DefaultTitle>

Syntax

<uap:DefaultTile
  Wide310x150Logo = 'An optional string with a value between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that cannot contain these characters: <, >, :, ", |, ?, or *. Additionally, the / and \ characters cannot be the first or last characters. Also, the string can contain / or \ but not both.'
  Square310x310Logo = 'An optional string with a value between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that cannot contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters cannot be the first or last characters. Also, the string can contain / or \ but not both.'
  Square71x71Logo = 'An optional string with a value between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that cannot contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters cannot be the first or last characters. Also, the string can contain / or \ but not both.'
  ShortName = 'An optional string with a value between 1 and 40 characters in length.' >

  <!-- Child elements -->
  uap:TileUpdate?
  & uap:ShowNameOnTiles?
  & uap5:MixedRealityModel?

</uap:DefaultTile>

答案

? 選擇性 (零或一個 &) 交錯連接器, (可能會依任何順序發生)

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
ShortName 直接顯示在磚上的應用程式簡短名稱。 此字串可當地語系化;如需詳細資訊,請參閱。 長度介於 1 到 40 個字元之間的選擇性字串。 No
Wide310x150Logo 310x150 寬版標誌影像。 當磚以寬格式顯示時,會顯示此影像。 如果未提供此影像,磚只能以方形格式顯示,且無法接受以 寬範本類型為基礎的通知。 使用者擁有磚使用格式的最終選擇,因此最佳做法是包含寬標誌影像。 如果提供寬標誌影像,磚一開始會以寬格式顯示。 如需必要標誌維度的詳細資訊,請參閱 磚大小 長度介於 1 到 256 個字元之間的選擇性字串,其結尾為 、 或 不能包含下列字元: < 、、 "?|>: 或 。 *.jpeg.png.jpg 此外, /\ 字元不能是第一個或最後一個字元。 此外,字串也可以包含 或 , \ 但不能同時包含 / 兩者。 No
Square310x310Logo 標誌影像的 310x310 方形版本。 長度介於 1 到 256 個字元之間的選擇性字串,其結尾為 、 或 不能包含下列字元: < 、、 "?|>: 或 。 *.jpeg.png.jpg 此外, /\ 字元不能是第一個或最後一個字元。 此外,字串也可以包含 或 , \ 但不能同時包含 / 兩者。 No
Square71x71Logo 標誌影像的 71x71 方形版本。 長度介於 1 到 256 個字元之間的選擇性字串,其結尾為 、 或 不能包含下列字元: < 、、 "?|>: 或 。 *.jpeg.png.jpg 此外, /\ 字元不能是第一個或最後一個字元。 此外,字串也可以包含 或 , \ 但不能同時包含 / 兩者。 No

子元素

子項目 描述
uap:ShowNameOnTiles 描述 Windows 是否會在 [開始] 畫面上顯示的磚影像頂端重迭應用程式的名稱。
uap:TileUpdate 描述應用程式磚如何接收更新通知。
uap5:MixedRealityModel 元素,用來定義 3D 模型做為應用程式的預設標記法。 從虛擬或混合實境裝置啟動時,此模型將會代表虛擬設定中的應用程式。

父元素

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

備註

針對 Wide310x150LogoSquare310x310LogoSquare71x71LogoTall150x310Logo 影像,您可以提供不同縮放比例的影像,讓 Windows 可以為裝置和螢幕解析度選擇最佳大小。 您也可以提供協助工具的高對比影像和當地語系化的影像,以符合不同的 UI 語言。 這項功能也可讓您將 ShortName 屬性當地語系化。 如需詳細資訊,請參閱 全球化 主題。

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10
OS 最低版本 Windows 10版本 1511 (組建 10586)