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

Binding and Sub-MenuItems

Thread ID:

Created:

Updated:

Platform:

Replies:

127366 Nov 10,2016 09:41 AM UTC Nov 15,2016 09:20 AM UTC UWP 1
loading
Tags: SfMenu
Gernot Knes
Asked On November 10, 2016 09:41 AM UTC

Hi.

I want to build the structure of my SfMenu-control based on a View-Model and binding. This works fine as long as I have a "flat" menu without sub-elements. Is there a way to bind to a structure holding also sub-menu-items.

Current idea would be something like this:

ViewModel:
public ObservableCollection<MyMenuItemClass> MenuItems {get; set;}

MyMenuItemClass:
public string MenuHeader {get; set; }
public ObservableCollection<MyMenuItemClass> SubMenuItems {get; set;}

But of course the binding does not automatically recognize the MenuItems. Also tried to add binding within the ItemContainerStyle and the ItemsSource property. But this does not work.

Any suggestions?

Best regards, Gernot

Marimuthu Sivalingam [Syncfusion]
Replied On November 15, 2016 09:20 AM UTC

Hi Gernot,

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

;