We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error with Application Menu in Ribbon

I have a Ribbon and all right, but when i config the application menu, it throw an error:


I removed lineas for simplify:


and the error is this:

other thing that i see is that if change de title of application menu, and it doesn't show the change when it run:

 <syncfusion:Ribbon x:Name="rbMenu" VerticalAlignment="Top" Grid.ColumnSpan="4" ApplicationMenuHeader="Home">


5 Replies 1 reply marked as answer

BA BagavathiPerumal Apranandham Syncfusion Team March 16, 2023 02:13 PM UTC

Hi Ricardo,

Query 1: Exception was thrown when configure the Application menu.

We are unable to reproduce the issue from our end. Please refer to the attached sample for your reference.

Could you please share the following details.

  • Theme name, if you are using a Theme.
  • XAML and C# code of ribbon
  • If possible, please share the modified demo.

Query 2: How to change the header of the application menu.

We suggest you to use the “BackStageHeader” property instead of “ApplicationMenuHeader” property to change the header of the application menu.

Bagavathi Perumal A

Attachment: RibbonApplicationMenu_e5e8f4f9.zip

RI Ricardo March 18, 2023 10:44 PM UTC


I know how resolve the query 1, I pass both examples, the principal different is the use of:

SfSkinManager.ApplyStylesOnApplication = true;

what it is correct use?

Attachment: RibbonApplicationMenu_e5e8f4f9_b30eac5e.zip

BA BagavathiPerumal Apranandham Syncfusion Team March 22, 2023 01:36 PM UTC

Hi Ricardo,

To apply a theme globally in an application, set the ApplyStylesOnApplication property to True. It merges all the theme resource files to Application.Current.Resources. Please refer to the attached documentation for your reference.

Documentation link: WPF Skin Manager | Apply Themes for Syncfusion WPF controls

We have confirmed the reported scenario is a defect and logged a report for the reported scenario “System.Reflection.TargetInvocationException occurs while setting the ApplyStylesOnApplication property in Ribbon”. We will provide the fix in the Weekly NuGet release on 11th April 2023.

You can track the status of this defect using the following feedback link:  System.Reflection.TargetInvocationException occurs while setting ApplyStylesOnApplication property in Ribbon in WPF | Feedback Portal (syncfusion.com)

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.

Note: The provided feedback link is private, and you need to log in to view this feedback.


Bagavathi Perumal A

RS Raghavendra Sudhakar Syncfusion Team April 11, 2023 03:00 PM UTC

Hi Ricardo,

Sorry for the inconvenience,

We are still working on this issue with high priority. We will update the fix in our upcoming NuGet release which is scheduled on 18th April 2023. We will appreciate your patience until then.


Raghavendra S

RS Raghavendra Sudhakar Syncfusion Team April 19, 2023 06:19 AM UTC

Hi Ricardo,

We have included the fix for the reported issue “System.Reflection.TargetInvocationException occurs while setting the ApplyStylesOnApplication property in Ribbon” in our Weekly NuGet release version 21.1.41 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 require any further assistance.

Marked as answer
Live Chat Icon For mobile
Up arrow icon