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 use mvvm mode to bind itemsource to uxmenu bar.
<Intersoft:UXMenuBar ItemsSource="{Binding Items}" DisplayMemberPath="Text" ImageMemberPath="Icon" CollectionMemberPath="SubItems" Style="{StaticResource UXMenuBarStyle1}" Visibility="{Binding HasLogin}" >
When i run my project,i can see the menu item generated properly.But how can i bind the navigate uri to menuitem?
Here is the viewmodel code:
ObservableCollection<MenuItem> mi = new ObservableCollection<MenuItem>();
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)
}); }
Hello,
Could you provide a working sample? I need to see your current NavUri value properties. For more information about our Navigation Overview, please read http://www.intersoftpt.com/Support/ClientUI/Documentation/NavigationOverview.html.
Regards,Handy
Because the sample rely on the database,so i simply give you an attach file about the MenuItems generated by the code.
And i have define the urimapping with such code:
<Intersoft:UriMapping Uri="/{page}" MappedUri="/Views/{page}.xaml"/>
The "/Products" in the MenuItem.Jpg mapping to the file /Views/Products.xaml
The attach file "menuGenerated.Png" shows the genereated menu,it's right as i hoped,but when i click on the menuitem,nothing happenes!
I have made a lightweight sample,see the attachment.
Thank you for guiding me. Unfortunately, NavigateUri property only available in UXMenuItem level. But if you want, our developer can enhance this in our UXMenuBar level.
In my sample,NavigateUri property is setted to UxMenuItem,but it still can't work. By the way,i really need you enhance this in UXMenuBar level.
Thank you a lot!
I have your problem in here. For your scenario, you need to use Property binding in your ItemContainer Style. You can learn how to use Property binding with ItemContainerStlye in http://www.intersoftpt.com/Support/ClientUI/Documentation/#url=Databinding.html.
example,/
<Setter Property="Intersoft:BindingFramework.PropertyBinding"> <Setter.Value> <Intersoft:PropertyBinding> <Intersoft:PropertyBinding Property="NavigateUri" Binding="{Binding NavUri}"/> </Intersoft:PropertyBinding> </Setter.Value> </Setter>
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