.appxmanifest 文件中的 Properties/DisplayName 元素和 VisualElements@DisplayName 属性有什么区别 [英] What's the difference between Properties/DisplayName element and VisualElements@DisplayName attribute in .appxmanifest file

查看:16
本文介绍了.appxmanifest 文件中的 Properties/DisplayName 元素和 VisualElements@DisplayName 属性有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的appxmanifest中,有什么区别

Package/Properties/DisplayName 元素

Package/Applications/Application/VisualElements@DisplayName

<属性><显示名称></显示名称><!-- 这个--><PublisherDisplayName></PublisherDisplayName><标志></标志></属性><先决条件><OSMinVersion></OSMinVersion><OSMaxVersionTested></OSMaxVersionTested></先决条件><资源><资源语言=""/></资源><应用程序><应用程序 ID=""StartPage=""><!-- 还有这个--><VisualElements 显示名称=""说明=""标志=""SmallLogo=""ForegroundText=""BackgroundColor=""><SplashScreen Image=""/></视觉元素></应用程序></应用程序></包>

https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx

解决方案

Package/Properties/DisplayName

<块引用>

DisplayName 是您在商店中为上传到商店的应用保留的应用名称.

这是开发者门户(= 商店)中的实际保留名称.当您打包应用以上传到商店时,这将在通过 Visual Studio 中的向导时自动设置.

根元素 Visual Elements 是 Windows 应用商店应用在用户的电脑/手机上的可视化方式.

包/应用程序/应用程序/VisualElements

<块引用>

描述 Windows 应用商店应用的视觉方面:其默认磁贴、徽标图像、文本和背景颜色、初始屏幕方向、启动画面和锁定屏幕磁贴外观.

因此,Visual Elements 元素下的 DisplayName 属性是应用程序名称在用户 PC 上的显示方式.这可以与商店中的名称不同(例如本地化).

<块引用>

可以向用户显示的应用的友好名称.这个字符串是可本地化的;详情见备注.有两个明确的保留字不能用作上传到 Windows 应用商店的应用程序的 DisplayName:NoUIEntryPoints"和NoUIEntryPoints-DesignMode".这些标识符保留供开发工具和测试套件使用.

来源:https://msdn.microsoft.com/en-us/library/windows/apps/br211471.aspx

In following appxmanifest, what is the difference between

Package/Properties/DisplayName element

and

Package/Applications/Application/VisualElements@DisplayName

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
  <Identity Name="" 
            Version="" 
            Publisher="" />
  <Properties>
    <DisplayName></DisplayName> <!-- this -->
    <PublisherDisplayName></PublisherDisplayName>
    <Logo></Logo>
  </Properties>
  <Prerequisites>
    <OSMinVersion></OSMinVersion>
    <OSMaxVersionTested></OSMaxVersionTested>
  </Prerequisites>
  <Resources>
    <Resource Language="" />
  </Resources>
  <Applications>
    <Application Id="" StartPage="">
      <!-- and this -->
      <VisualElements DisplayName="" 
           Description=""
           Logo="" SmallLogo=""  
           ForegroundText="" BackgroundColor="">
         <SplashScreen Image="" />
      </VisualElements>
    </Application>
  </Applications>
</Package>

https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx

解决方案

Package/Properties/DisplayName

The DisplayName is the name of your app that you reserve in the store, for apps which are uploaded to the store.

This is the actual reserved name in the developer portal (= store). When you package your app for upload to the store, this will be automatically set when going through the wizard in Visual Studio.

The root element Visual Elements is how the Windows Store app is visualized on the user's pc/phone.

Package/Applications/Application/VisualElements

Describes the visual aspects of the Windows Store app: its default tile, logo images, text and background colors, initial screen orientation, splash screen, and lock screen tile appearance.

So the DisplayName property under the Visual Elements element is how the app's name is shown on the user's pc. This can be different from the name in the store (e.g. localized).

A friendly name for the app that can be displayed to users. This string is localizable; see Remarks for details. There are two explicitly reserved words that may not be used as the DisplayName for apps uploaded to the Windows Store: "NoUIEntryPoints" and "NoUIEntryPoints-DesignMode". These identifiers are reserved for use by development tools and test suites.

Source: https://msdn.microsoft.com/en-us/library/windows/apps/br211471.aspx

这篇关于.appxmanifest 文件中的 Properties/DisplayName 元素和 VisualElements@DisplayName 属性有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆