根据 MS 文档,功能区框架的应用程序菜单应该能够承载DropDownGallery
元素,但我无法通过 uicc 编译器。例如:
<Ribbon.ApplicationMenu>
<ApplicationMenu CommandName="AppMenu" >
<ApplicationMenu.RecentItems>
<RecentItems CommandName="RecentItems" EnablePinning="false" MaxCount="15" />
</ApplicationMenu.RecentItems>
<MenuGroup Class="MajorItems">
<DropDownGallery CommandName="MyAppGallery" Type="Commands" HasLargeItems="false">
<DropDownGallery.MenuLayout>
<VerticalMenuLayout Gripper="None"/>
</DropDownGallery.MenuLayout>
</DropDownGallery>
</MenuGroup>
</ApplicationMenu>
</Ribbon.ApplicationMenu>
这会导致 uicc 编译器出现 SC1053 错误:
error SC1053 : The attribute 'Type' on the element '{http://schemas.microsoft.com/windows/2009/Ribbon}DropDownGallery' is not defined in the DTD/Schema.
相同的DropDownGallery
语法在我们应用程序的其他任何地方都适用,并且 MS 文档明确声明这DropDownGallery
是MenuGroup
.
是什么赋予了?