TONE 3 DESKTOP V3 MANIFEST SCHEMA

  This is the Schema that defines elements and attributes for the Universal App
  Platform features in RS3. These types are imported into the Foundation
  schema and included in products that support UAP.

  !!!WARNING!!!

  Don't make any changes to this schema.  Changes will affect a wide range of
  partners and can potentially break product and test code, as well as existing
  .appx packages and manifests. Please follow https://osgwiki.com/wiki/Manifest_Request
  if you need to request any addition or modification.

@@END_SDKSPLIT -->
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://schemas.microsoft.com/appx/manifest/desktop/windows10/3"
           xmlns="http://schemas.microsoft.com/appx/manifest/desktop/windows10/3"
           xmlns:t="http://schemas.microsoft.com/appx/manifest/types"
           xmlns:f="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
           xmlns:desktop3="http://schemas.microsoft.com/appx/manifest/desktop/windows10/3"
           xmlns:desktop4="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4"
           xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"
           >

  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/types"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/foundation/windows10"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"/>

  <xs:element name="Extension" substitutionGroup="f:ApplicationExtensionChoice">
    <xs:complexType>
      <xs:choice minOccurs="0">
        <xs:element name="CloudFiles" type="CT_CloudFiles"/>
        <xs:element name="AutoPlayHandler" type="CT_AutoPlayHandler"/>
      </xs:choice>
      <xs:attribute name="Category" type="t:ST_ApplicationExtensionCategory_Desktop3" use="required"/>
      <xs:attributeGroup ref="t:ExtensionBaseAttributes"/>
      <xs:attributeGroup ref="uap10:TrustLevelGroup"/>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="CT_CloudFiles">
    <xs:all minOccurs="0">
      <xs:element name="CustomStateHandler" type="CT_CloudFilesHandler" />
      <xs:element name="ThumbnailProviderHandler" type="CT_CloudFilesHandler" />
      <xs:element name="ExtendedPropertyHandler" type="CT_CloudFilesHandler" />
      <xs:element name="BannersHandler" type="CT_CloudFilesHandler" />
      <xs:element ref="desktop4:ContentUriSource" minOccurs="0"/>
      <xs:element name="CloudFilesContextMenus" type="CT_CloudFilesContextMenus" />
      <xs:element ref="desktop4:DesktopIconOverlayHandlers" minOccurs="0"/>
    </xs:all>
    <xs:attribute name="IconResource" type="t:ST_ImageFile"/>
  </xs:complexType>

  <xs:complexType name="CT_CloudFilesHandler">
    <xs:attribute name="Clsid" type="t:ST_GUID"/>
  </xs:complexType>

  <xs:complexType name="CT_CloudFilesContextMenus">
    <xs:sequence minOccurs="0">
      <xs:element name="Verb" maxOccurs="10000">
        <xs:complexType>
          <xs:attribute name="Id" type="ST_CloudFilesContextMenusVerbId" use="required" />
          <xs:attribute name="Clsid" type="t:ST_GUID"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="ST_CloudFilesContextMenusVerbId">
    <xs:restriction base="t:ST_NonEmptyString">
      <xs:minLength value="3"/>
      <xs:maxLength value="64"/>
      <xs:pattern value="([A-Za-z0-9]*)"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="CT_AutoPlayHandler">
    <xs:sequence minOccurs="0" maxOccurs="1000">
      <xs:element name="InvokeAction">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="1000">
            <xs:element name="Content" type="CT_Content"/>
            <xs:element name="Device" type="CT_Device"/>
          </xs:choice>
          <xs:attribute name="ActionDisplayName" type="t:ST_DisplayName" use="required"/>
          <xs:attribute name="ProviderDisplayName" type="t:ST_DisplayName" use="required"/>
          <xs:attribute name="DefaultIcon" type="t:ST_FileName"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="CT_Content">
    <xs:attribute name="ContentEvent" type="t:ST_AutoPlayEvent" use="required"/>
    <xs:attribute name="Verb" type="t:ST_AutoPlayVerb" use="required"/>
    <xs:attribute name="DropTargetHandler" type="t:ST_GUID"/>
    <xs:attribute name="Parameters" type="t:ST_NonEmptyString"/>
  </xs:complexType>

  <xs:complexType name="CT_Device">
    <xs:attribute name="DeviceEvent" type="t:ST_AutoPlayEvent" use="required"/>
    <xs:attribute name="HWEventHandler" type="t:ST_GUID" use="required"/>
    <xs:attribute name="InitCmdLine" type="t:ST_NonEmptyString"/>
  </xs:complexType>

  <xs:element name="PropertyLists">
    <xs:complexType>
      <xs:sequence minOccurs="0" maxOccurs="2">
        <xs:element name="PropertyList">
          <xs:complexType>
            <xs:attribute name="Property" type="ST_Property" use="required"/>
            <xs:attribute name="Value" type="t:ST_NonEmptyString" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
    <xs:unique name="PropertyList_Property">
      <xs:selector xpath="desktop3:PropertyList"/>
      <xs:field xpath="@Property"/>
    </xs:unique>
  </xs:element>

  <xs:simpleType name="ST_Property">
    <xs:restriction base="xs:string">
      <xs:enumeration value="fullDetails"/>
      <xs:enumeration value="previewDetails"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

<?xml version="1.0" encoding="utf-8"?>
<!-- @@BEGIN_SDKSPLIT

  REDSTONE 4 UAP V6 MANIFEST SCHEMA

  This schema extends the elements that are available in the RS4 UAP schema.

  !!!WARNING!!!

  Don't make any changes to this schema.  Changes will affect a wide range of
  partners and can potentially break product and test code, as well as existing
  .appx packages and manifests. Please follow https://microsoft.sharepoint.com/teams/appxmanifest/SitePages/Home.aspx
  if you need to request any addition or modification.

@@END_SDKSPLIT -->
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://schemas.microsoft.com/appx/manifest/uap/windows10/6"
           xmlns="http://schemas.microsoft.com/appx/manifest/uap/windows10/6"
           xmlns:t="http://schemas.microsoft.com/appx/manifest/types"
           xmlns:f="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
           xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"
           >

  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/types"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/foundation/windows10"/>
  <xs:import namespace="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"/>

  <xs:element name="AllowExecution" type="xs:boolean"/>

  <xs:element name="Extension" substitutionGroup="f:ExtensionChoice">
    <xs:complexType>
      <xs:choice minOccurs="0">
        <xs:element name="BarcodeScannerProvider" type="CT_BarcodeScannerProvider"/>
        <xs:element name="LocalExperiencePack" type="CT_LocalExperiencePack"/>
        <xs:element name="LoaderSearchPathOverride" type="CT_LoaderSearchPathOverride"/>
      </xs:choice>
      <xs:attribute name="Category" type="t:ST_ExtensionCategory_Uap6" use="required"/>
      <xs:attributeGroup ref="t:ExtensionBaseAttributes"/>
      <xs:attributeGroup ref="uap10:TrustLevelGroup"/>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="CT_BarcodeScannerProvider">
    <xs:attribute name="DisplayName" type="t:ST_DisplayName"/>
    <xs:attribute name="SupportsVideoPreview" type="xs:boolean"/>
  </xs:complexType>
  
  <xs:complexType name="CT_LocalExperiencePack">
    <xs:attribute name="Language" type="xs:language" use="required"/>
  </xs:complexType>
  
  <xs:element name="SpatialBoundingBox">
    <xs:complexType>
      <xs:attribute name="Center" type="ST_Vector3" use="required"/>
      <xs:attribute name="Extents" type="ST_Vector3PositiveOrAuto" use="required"/>
    </xs:complexType>
  </xs:element>

  <xs:simpleType name="ST_Vector3">
    <xs:restriction base="t:ST_NonEmptyString">
      <xs:pattern value="\-?[0-9]*\.?[0-9]+,\-?[0-9]*\.?[0-9]+,\-?[0-9]*\.?[0-9]+"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="ST_Vector3PositiveOrAuto">
    <xs:restriction base="t:ST_NonEmptyString">
      <xs:pattern value="([1-9]+(\.[0-9]+)?|[0-9]*\.[0-9]*[1-9]),([1-9]+(\.[0-9]+)?|[0-9]*\.[0-9]*[1-9]),([1-9]+(\.[0-9]+)?|[0-9]*\.[0-9]*[1-9])"/>
      <xs:pattern value="Auto"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:attribute name="CodecMimeType" type="t:ST_NonEmptyString"/>

  <xs:complexType name="CT_LoaderSearchPathOverride">
    <xs:sequence minOccurs="0" maxOccurs="5">
      <xs:element name="LoaderSearchPathEntry">
        <xs:complexType>
          <xs:attribute name="FolderPath" type="ST_FileNameOrEmpty" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="ST_EmptyString">
    <xs:restriction base="xs:string">
      <xs:pattern value=""/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="ST_FileNameOrEmpty">
    <xs:union memberTypes="ST_EmptyString t:ST_FileName"/>
  </xs:simpleType>

  <xs:attribute name="Optional" type="xs:boolean"/>

  <xs:element name="Capability" substitutionGroup="f:CapabilityChoice">
    <xs:complexType>
      <xs:attribute name="Name" type="t:ST_Capability_Uap_6" use="required"/>
    </xs:complexType>
  </xs:element>

</xs:schema>

