uap:SplashScreen (Windows 10)

定义应用在启动期间显示的初始屏幕的外观。

元素层次结构

<包>

    <应用程序>

         <应用程序>

              <uap:VisualElements>

                   <uap:SplashScreen>

语法

<uap:SplashScreen
    BackgroundColor = 'An optional three-byte hexadecimal number preceded by "#" or a named color. See the [Remarks](#remarks) for a list of named colors.'
    Image = 'A 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.' 
    uap5:Optional = 'An optional boolean value.' />

密钥

? 可选 (零个或一个)

特性和元素

属性

属性 说明 数据类型 必须 默认值
BackgroundColor 指定初始屏幕的背景色。 有关颜色名称的列表,请参阅 “备注 ”部分。 可选的三字节十六进制数字,前面有“#”或命名颜色。 有关命名颜色的列表,请参阅 “备注 ”。
图像 初始屏幕图像的路径。 有关大小要求 ,请参阅“备注 ”部分。 一个字符串,其值长度在 1 到 256 个字符之间,以 、 或 结尾,不能包含以下字符:<、、>:"|、、 ?*.jpeg.png.jpg 在此字符串中, /\ 字符不能是第一个或最后一个字符。 此外,字符串可以包含 或 ,\但不能同时包含/两者。
uap5:Optional 指定是否应在不带初始屏幕的情况下启动应用。 如果为 true,则如果应用可以足够快地启动,则不会显示初始屏幕。 如果应用启动时间存在延迟,将显示初始屏幕。 如果为 false,则始终显示初始屏幕。 可选的布尔值。

子元素

无。

父元素

父元素 描述
uap:VisualElements 描述应用的视觉方面:其默认磁贴、徽标图像、文本和背景色、初始屏幕方向、初始屏幕和锁屏界面磁贴外观。

注解

初始屏幕图像可以作为图像文件的直接路径或资源提供。 通过使用资源引用,你可以提供不同比例的图像,以便 Windows 可以选择适合设备和屏幕分辨率的最佳大小。 你还可以提供辅助功能的高对比度图像和本地化图像,以匹配不同的 UI 语言。 有关详细信息,请参阅 全球化 主题。

初始屏幕图像的大小要求如下所示:

  • 图像特性
  • 缩放
  • 图像大小(以像素为单位)
  • Applications/Application/VisualElements/SplashScreen/@Image
  • 100
  • 620x300
  • 140
  • 868x420
  • 180
  • 1116x540

以下是支持的背景色名称:

aliceBlue
古色白
浅绿色
水绿色
azure
米黄色
橘黄色
black
blanchedAlmond
blue
blueViolet
棕色
burlyWood
cadetBlue
黄绿色
巧克力色
珊瑚色
玉米花蓝色
玉米丝色
深红色
蓝绿色
深蓝色
深色青色
darkGoldenrod

darkGray
深绿色
darkKhaki
darkMagenta
darkOliveGreen
darkOrange
darkOrchid
darkRed
darkSalmon
darkSeaGreen
darkSlateBlue
darkSlateGray
darkTurquoise
darkViolet
deepPink
deepSkyBlue
dimGray
dodgerBlue
火砖色
花白
forestGreen
紫红色
亮灰色
ghostWhite

金色
金麒麟色
灰色
green
greenYellow
蜜色
hotPink
indianRed
靛蓝色
乳白色
卡其色
淡紫色
lavenderBlush
lawnGreen
lemonChiffon
lightBlue
lightCoral
lightCyan
lightGoldenrodYellow
lightGray
lightGreen
lightPink
lightSalmon
lightSeaGreen

lightSkyBlue
lightSlateGray
lightSteelBlue
lightYellow
lime
limeGreen
亚麻色
洋红色
褐红色
mediumAquamarine
mediumBlue
mediumOrchid
mediumPurple
mediumSeaGreen
mediumSlateBlue
mediumSpringGreen
mediumTurquoise
mediumVioletRed
midnightBlue
mintCream
mistyRose
鹿皮色
navajoWhite

深蓝色
oldLace
橄榄色
oliveDrab
orange
orangeRed
兰花紫
paleGoldenrod
paleGreen
paleTurquoise
paleVioletRed
木瓜Whip
peachPuff
秘鲁棕色
pink
梅红色
powderBlue
purple
红色
rosyBrown
royalBlue
saddleBrown
鲑肉色

sandyBrown
seaGreen
贝壳
赭色
银色
skyBlue
slateBlue
slateGray
snow
springGreen
steelBlue
tan
水鸭色
蓟色
番茄色
transparent
宝石绿色
紫罗兰色
小麦色
white
whiteSmoke
yellow
yellowGreen

另请参阅

Colors 类

要求

Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10
uap5 http://schemas.microsoft.com/appx/manifest/uap/windows10/5
Minimum OS Version Windows 10版本 1511 (内部版本 10586)