iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I want to bind itemsource to UXNavigationPane ,because the navigation items are from the database.
Here is my code:
(1)View (Xaml)
<Intersoft:UXNavigationPane x:Name="OutlookMenuPane" Header="" IsExpanded="{Binding IsExpanded, ElementName=MainPane}" VisibleItemCount="10" AutoSelectFirstItem="True" Background="#FFEBEFF3" FooterVisibility="Collapsed" ItemsSource="{Binding NavItems}" DisplayMemberPath="Text" ImageMemberPath="Icon" CollectionMemberPath="SubItems">
(2)ViewModel
Note:Module is a entity class mapping to the navigation item table in the database.
foreach (Module nm in mRet) { mi.Add(new MenuItem() { Text=nm.MoudleMenuName==""?nm.ModuleName:nm.MoudleMenuName, Icon="Images/"+nm.SmallIconAddress, NavUri=nm.ModuleUrl, ModuleCode=nm.ModuleCode, SubItems = this.GetThisLevelMenuItem(nLevel + 1, nm.ModuleCode)
}); }
But i can only see an empty UXNavigationPane.Can you give me some advice?
Hi,
Could you provide the working sample? Based on your code, I need to know the current value that assigned in each properties.
Regards,Handy
Because the sample is based on DB, so i first give you the xaml file and the ItemSouce sample binded to the UXNavigationPane,if you still get enough information,i will make another lightweight sample.
I have made a lightweight sample,see the attachment.
Hello,
I need a little time to discuss with our developer teams. I will back to you asap.Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname