﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Tue, 07 Jun 2011 05:01:24 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;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 &lt;a href="http://www.intersoftpt.com/Support/ClientUI/Documentation/#url=Databinding.html"&gt;http://www.intersoftpt.com/Support/ClientUI/Documentation/#url=Databinding.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;example,/&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;  &amp;lt;Setter Property="Intersoft:BindingFramework.PropertyBinding"&amp;gt;
                                &amp;lt;Setter.Value&amp;gt;
                                    &amp;lt;Intersoft:PropertyBinding&amp;gt;
                                       &amp;lt;Intersoft:PropertyBinding Property="NavigateUri"  Binding="{Binding NavUri}"/&amp;gt;                                 
                                    &amp;lt;/Intersoft:PropertyBinding&amp;gt;
                                &amp;lt;/Setter.Value&amp;gt;
                            &amp;lt;/Setter&amp;gt;&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Wed, 01 Jun 2011 09:31:59 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Thank you a lot!&lt;/p&gt;</description></item><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Wed, 01 Jun 2011 06:22:28 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello, &lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Tue, 31 May 2011 09:44:14 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;I have made a lightweight sample,see the attachment.&lt;/p&gt;</description></item><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Tue, 31 May 2011 05:58:15 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Because the sample rely on the database,so i simply give you an attach file about the MenuItems generated by the code.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;And i have define the urimapping with such code:&lt;/p&gt;
&lt;p&gt; &amp;lt;Intersoft:UriMapping Uri="/{page}" MappedUri="/Views/{page}.xaml"/&amp;gt;&lt;/p&gt;
&lt;p&gt;The "/Products" in the MenuItem.Jpg mapping to the file /Views/Products.xaml&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The attach file "menuGenerated.Png" shows the genereated menu,it's right as i hoped,but when i click on the menuitem,nothing happenes!&lt;/p&gt;</description></item><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Tue, 31 May 2011 04:37:39 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Could you provide a working sample? I need to see your current NavUri value properties. For more information about our Navigation Overview, please read &lt;a href="http://www.intersoftpt.com/Support/ClientUI/Documentation/NavigationOverview.html"&gt;http://www.intersoftpt.com/Support/ClientUI/Documentation/NavigationOverview.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How to bind navigate uri to uxmenubar?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-bind-navigate-uri-to-uxmenubar/</link><pubDate>Mon, 30 May 2011 04:31:17 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;I use mvvm mode to bind itemsource to uxmenu bar. &lt;/p&gt;
&lt;p&gt;&amp;lt;Intersoft:UXMenuBar ItemsSource="{Binding Items}" DisplayMemberPath="Text"  ImageMemberPath="Icon" CollectionMemberPath="SubItems"  Style="{StaticResource UXMenuBarStyle1}" Visibility="{Binding HasLogin}"&lt;br /&gt;    &amp;gt;&lt;/p&gt;
&lt;p&gt;When i run my project,i can see the menu item generated properly.But how can i bind the navigate uri to menuitem?&lt;/p&gt;
&lt;p&gt;Here is the viewmodel code:&lt;/p&gt;
&lt;p&gt;ObservableCollection&amp;lt;MenuItem&amp;gt; mi = new ObservableCollection&amp;lt;MenuItem&amp;gt;();&lt;/p&gt;
&lt;p&gt; foreach (Module nm in mRet)&lt;br /&gt;            {&lt;br /&gt;               mi.Add(new MenuItem()&lt;br /&gt;                {&lt;br /&gt;                    Text=nm.MoudleMenuName==""?nm.ModuleName:nm.MoudleMenuName,&lt;br /&gt;                    Icon="Images/"&amp;#43;nm.SmallIconAddress,&lt;br /&gt;                    NavUri=nm.ModuleUrl,&lt;br /&gt;                    ModuleCode=nm.ModuleCode,&lt;br /&gt;                    SubItems = this.GetThisLevelMenuItem(nLevel &amp;#43; 1, nm.ModuleCode)&lt;/p&gt;
&lt;p&gt;                });             &lt;br /&gt;            }&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>