1
根據MS文檔,功能區框架的應用程序菜單應該能夠承載DropDownGallery
元素,但是我無法通過uicc編譯器。例如:Windows功能區框架:應用菜單中的圖庫
<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>
這導致SC1053錯誤從UICC編譯:
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
。
什麼給?