According to MS documentation, the ribbon framework's application menu should be able to host DropDownGallery
elements, but I can't get this past the uicc compiler. For example:
<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>
This results in an SC1053 error from the uicc compiler:
error SC1053 : The attribute 'Type' on the element '{http://schemas.microsoft.com/windows/2009/Ribbon}DropDownGallery' is not defined in the DTD/Schema.
The same DropDownGallery
syntax works everywhere else in our app, and the MS docs explicitly state that DropDownGallery
is a permitted element in a MenuGroup
.
What gives?