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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfMenuItemSeparator unable to cast object to type SfMenuItem

Thread ID:

Created:

Updated:

Platform:

Replies:

128885 Feb 14,2017 09:55 AM UTC Feb 15,2017 09:57 AM UTC UWP 1
loading
Tags: SfMenu
Alexandru Pastor Opris
Asked On February 14, 2017 09:55 AM UTC

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

Marimuthu Sivalingam [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;