﻿<?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 navigate to another page using mvvm</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-navigate-to-another-page-using-mvvm/</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 navigate to another page using mvvm</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-navigate-to-another-page-using-mvvm/</link><pubDate>Wed, 11 Apr 2012 22:50:43 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The complete predefined commands for navigation are available in the ClientUI documentation. Please open ClientUI Documentation (start &amp;gt; All Programs &amp;gt; Intersoft WebUI Studio 2011 R2 SP1 &amp;gt; WebUI Studio for Silverlight 5 &amp;gt; Intersoft ClientUI Documentation) and check the Navigation Commands in the Navigation Overview topic; or check out the live version in &lt;a href="http://www.intersoftpt.com/Support/ClientUI/Documentation/NavigationOverview.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our community site. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to navigate to another page using mvvm</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-navigate-to-another-page-using-mvvm/</link><pubDate>Tue, 10 Apr 2012 04:35:49 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;just what I was looking for - thanks.  Is this in the documentation - have I overlooked?&lt;/p&gt;</description></item><item><title>How to navigate to another page using mvvm</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-navigate-to-another-page-using-mvvm/</link><pubDate>Mon, 09 Apr 2012 03:53:08 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;ClientUI already includes several predefined commands for navigation that you can use in your application such as Navigate command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The following code example shows how to navigate to a page using Navigate command assigned in a button.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:UXPage
    xmlns:Intersoft="http://intersoft.clientui.com/schemas"&amp;gt;
    &amp;lt;StackPanel&amp;gt;
        &amp;lt;Intersoft:UXButton Content="Navigate to Home"
                            Command="Intersoft:NavigationCommands.Navigate"
                            CommandParameter="/Home" /&amp;gt;
    &amp;lt;/StackPanel&amp;gt;
&amp;lt;/Intersoft:UXPage&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You might want to try to bind the CommandParameter property as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;View: MainPage.xaml&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;...
&amp;lt;Intersoft:UXButton Content="Navigate to Home"
                       Command="Intersoft:NavigationCommands.Navigate"
                       CommandParameter="{Binding UriNavigateTo}" /&amp;gt;
...&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;ViewModels: MainPageViewModel.cs&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public class MainPageViewModel : ViewModelBase
{
    public MainPageViewModel()
    {
        this._uriNavigateTo = new Uri("/UXPage1", UriKind.RelativeOrAbsolute);
    }

    private Uri _uriNavigateTo;

    public Uri UriNavigateTo
    {
        get
        {
            return _uriNavigateTo;
        }
        set
        {
            _uriNavigateTo = value;
            OnPropertyChanged("UriNavigateTo");
        }
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Or bind the Command property as shown in the following.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;View: MainPage.xaml&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;...
&amp;lt;Intersoft:UXButton Content="Navigate to Home"
                       Command="{Binding NavigateAction}" /&amp;gt;
...&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;ViewModels: MainPageViewModel.cs&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public class MainPageViewModel : ViewModelBase
{
    public MainPageViewModel()
    {
        this.NavigateAction = new DelegateCommand(NavigateCommandAction, CanNavigateAction);
    }

    public DelegateCommand NavigateAction
    {
        get;
        private set;
    }

    private bool CanNavigateAction(object parameter)
    {
        return true;
    }

    private void NavigateCommandAction(object parameter)
    {
        NavigationServiceProvider.Navigate(new Uri("/Blank", UriKind.Relative));
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to navigate to another page using mvvm</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-navigate-to-another-page-using-mvvm/</link><pubDate>Wed, 04 Apr 2012 03:18:22 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How do I navigate to another page using mvvm - so behind a command button I run some code (in viewmodel), then on finishing the code I want close the current page and move to a new page.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>