Update Start layout XML and Taskbar XSD

This commit is contained in:
Paolo Matarazzo 2024-03-22 10:11:59 -04:00
parent 2f38bc623c
commit c863a8a336
4 changed files with 73 additions and 67 deletions

View File

@ -1,5 +1,5 @@
--- ---
title: Start layout XML for desktop editions of Windows 10 title: Start layout XML
description: This article describes the options for customizing Start layout in LayoutModification.xml for Windows 10 desktop editions. description: This article describes the options for customizing Start layout in LayoutModification.xml for Windows 10 desktop editions.
ms.topic: reference ms.topic: reference
ms.date: 10/02/2018 ms.date: 10/02/2018
@ -7,7 +7,7 @@ appliesto:
- ✅ <a href=/windows/release-health/supported-versions-windows-client target=_blank>Windows 10</a> - ✅ <a href=/windows/release-health/supported-versions-windows-client target=_blank>Windows 10</a>
--- ---
# Start layout XML Windows 10 # Start layout XML
On Windows 10 for desktop editions, the customized Start works by: On Windows 10 for desktop editions, the customized Start works by:
@ -350,7 +350,7 @@ The following example shows how to add the **AppendDownloadOfficeTile** tag to y
## Sample LayoutModification.xml ## Sample LayoutModification.xml
The following sample LayoutModification.xml shows how you can configure the Start layout for devices running Windows 10 for desktop editions: The following sample LayoutModification.xml shows how you can configure the Start layout:
```XML ```XML
<LayoutModificationTemplate <LayoutModificationTemplate

View File

@ -319,69 +319,7 @@ This reference article contains the Start XML schema definition (XSD).
</xsd:schema> </xsd:schema>
``` ```
## Taskbar ## FullDefaultLayout
Here's the Taskbar XSD:
```xml
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:local="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
targetNamespace="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
elementFormDefault="qualified">
<xsd:complexType name="ct_PinnedUWA">
<xsd:attribute name="AppUserModelID" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="ct_PinnedDesktopApp">
<xsd:attribute name="DesktopApplicationID" type="xsd:string" />
<xsd:attribute name="DesktopApplicationLinkPath" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="ct_TaskbarSecondaryTile">
<xsd:attribute name="AppUserModelID" type="xsd:string" use="required"/>
<xsd:attribute name="TileID" type="xsd:string" use="required"/>
<xsd:attribute name="Arguments" type="xsd:string" use="required"/>
<xsd:attribute name="DisplayName" type="xsd:string" use="required"/>
<xsd:attribute name="Square150x150LogoUri" type="xsd:string" use="required"/>
<xsd:attribute name="Wide310x150LogoUri" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="ct_TaskbarPinList">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="UWA" type="local:ct_PinnedUWA" />
<xsd:element name="DesktopApp" type="local:ct_PinnedDesktopApp" />
<xsd:element name="SecondaryTile" type="local:ct_TaskbarSecondaryTile" />
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="Region" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:simpleType name="st_TaskbarPinListPlacement">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Append" />
<xsd:enumeration value="Replace" />
</xsd:restriction>
</xsd:simpleType>
<xsd:attributeGroup name="ag_SelectionAttributes">
<xsd:attribute name="SKU" type="xsd:string" use="optional"/>
<xsd:attribute name="Region" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:complexType name="ct_TaskbarLayout">
<xsd:sequence>
<xsd:element name="TaskbarPinList" type="local:ct_TaskbarPinList" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
<xsd:attributeGroup ref="local:ag_SelectionAttributes"/>
</xsd:complexType>
</xsd:schema>
```
## Full Layout
```xml ```xml
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>

View File

@ -2,4 +2,6 @@ items:
- name: Customize the Taskbar - name: Customize the Taskbar
href: index.md href: index.md
- name: Supported Taskbar CSPs - name: Supported Taskbar CSPs
href: policy-settings.md href: policy-settings.md
- name: XML schema definition (XSD)
href: xsd.md

View File

@ -0,0 +1,66 @@
---
title: Taskbar XML Schema Definition (XSD)
description: Taskbar XSD reference article.
ms.topic: reference
ms.date: 02/15/2024
---
# Taskbar XML Schema Definition (XSD)
```xml
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:local="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
targetNamespace="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
elementFormDefault="qualified">
<xsd:complexType name="ct_PinnedUWA">
<xsd:attribute name="AppUserModelID" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="ct_PinnedDesktopApp">
<xsd:attribute name="DesktopApplicationID" type="xsd:string" />
<xsd:attribute name="DesktopApplicationLinkPath" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="ct_TaskbarSecondaryTile">
<xsd:attribute name="AppUserModelID" type="xsd:string" use="required"/>
<xsd:attribute name="TileID" type="xsd:string" use="required"/>
<xsd:attribute name="Arguments" type="xsd:string" use="required"/>
<xsd:attribute name="DisplayName" type="xsd:string" use="required"/>
<xsd:attribute name="Square150x150LogoUri" type="xsd:string" use="required"/>
<xsd:attribute name="Wide310x150LogoUri" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="ct_TaskbarPinList">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="UWA" type="local:ct_PinnedUWA" />
<xsd:element name="DesktopApp" type="local:ct_PinnedDesktopApp" />
<xsd:element name="SecondaryTile" type="local:ct_TaskbarSecondaryTile" />
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="Region" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:simpleType name="st_TaskbarPinListPlacement">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Append" />
<xsd:enumeration value="Replace" />
</xsd:restriction>
</xsd:simpleType>
<xsd:attributeGroup name="ag_SelectionAttributes">
<xsd:attribute name="SKU" type="xsd:string" use="optional"/>
<xsd:attribute name="Region" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:complexType name="ct_TaskbarLayout">
<xsd:sequence>
<xsd:element name="TaskbarPinList" type="local:ct_TaskbarPinList" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
<xsd:attributeGroup ref="local:ag_SelectionAttributes"/>
</xsd:complexType>
</xsd:schema>
```