I'm developing an app to have a similar look and feel to an existing app that was based on a RibbonWindow and uses the ApplicationMenu. I want to emulate the appearance of the ApplicationMenu Button but really don't require the rest of the ribbon window behaviour. I've therefore done the following which appears to work:-
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<sf:ApplicationMenu ApplicationButtonImage="Images\Wheel64x64.png" Name="MainMenu">
<MenuItem Command="New" Name="NewMenu" />
<MenuItem Command="Open" />
<MenuItem Command="Save" />
<Separator />
<MenuItem Command="{StaticResource Exit}" />
</sf:ApplicationMenu>
</StackPanel>
Is there any reason not to do this? Assuming there is a good reason, is there an equivalent of the ApplicationControlMenu intended to be used without the ribbon? What I'm really after is the nice round button that acts as the menu header.
I am getting one problem which I don't understand. When I open the menu I get a weird presentation that includes the bottom of the button:-
I've tried changing the window to be a ribbon window and embedding this in a ribbon but I still get the same effect so I don't think this s associated with using it without the ribbon control. Any idea what would be causing that?
(Here's the xaml when switched to using a ribbon):-
<sf:Ribbon Name="ribbon" DockPanel.Dock="Top">
<sf:Ribbon.ApplicationMenu>
<sf:ApplicationMenu Name="MainMenu" ApplicationButtonImage="Images\AquatorWheel64x64.png">
<sf:SimpleMenuButton Command="New" Label="New" Name="NewMenu" />
<sf:SimpleMenuButton Command="Open" Label="Open" />
<sf:SimpleMenuButton Command="Save" Label="Save"/>
<Separator />
<sf:SimpleMenuButton Command="{StaticResource Exit}" Label="Exit" />
</sf:ApplicationMenu>
</sf:Ribbon.ApplicationMenu>
</sf:Ribbon>
Hi Declan,
It is recommended to use the Application Menu for ribbon control only as it is designed for ribbon.
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Application menu image appears in the dropdown”. We will provide the fix in the Nuget version on 25th October 2022.
You can track the status of this defect using the following feedback link:
https://www.syncfusion.com/feedback/38316/applicationmenu-image-appears-in-the-dropdown
If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.
Please let us know if you need any further assistance.
Regards,
Harinath N
Thanks for the feedback. I can probably emulate the look and feel by using appropriate graphics so I can work around that.
Hi Declan,
Okay, we will update you once the reported issue in ribbon control is fixed
Regards,
Harinath N
Hi Declan,
Sorry for the inconvenience caused.
Regards,
Gokul T
Just want to say thanks for continuing to look at it. I'm not under an immediate time constraint for this so 1st Nov is fine with me.
Sorry for the inconvenience caused
We have fixed the reported issue from our end. Due to some internal issues, the fix is not moved to the 2022 Volume 3 SP release. We have moved the fix to the upcoming NuGet release which will be scheduled on 15th November 2022.
We have included the fix in our latest Weekly NuGet release v20.3.0.57 which is available for download (https://www.nuget.org/). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance