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
close icon

SfMenuItemSeparator unable to cast object to type SfMenuItem

Hello,

There seems to be an exception when using SfMenuItemSeparator inside of SfMenuItem, we've created a simple menu with some sub-menus and then decided to use a separator and got this exception:
Unable to cast object of type 'Syncfusion.UI.Xaml.Controls.Navigation.SfMenuItemSeparator' to type 'Syncfusion.UI.Xaml.Controls.Navigation.SfMenuItem'.

We're using Syncfusion V14.4.0.20 and the control was suggested inside of SfMenu, added a screenshot at the end and a attached file with a sample of the menu breaking when navigating to Menu 1 > Item 1.3.
We found an workaround for this but we wanted to see if we missed something or if there's a better way of using or creating the separator which Syncfusion has.

The workaround which we found was creating a custom control template for SfMenuItem, which contains just a simple Rectangle of 1 height inside.

Thanks and have a nice day.
Alexandru.

Separator Suggestion

Attachment: SyncfusionMenu_b596e222.rar

1 Reply

MS Marimuthu Sivalingam Syncfusion Team February 15, 2017 09:57 AM UTC

Hi Alexandru,

Thank you for contacting Syncfusion support.

We were able to reproduce the issue and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Marimuthu S.

Loader.
Live Chat Icon For mobile
Up arrow icon