MVVM and Ribbon Command
<p>I am trying to change the source property of the frame in Page1.xaml when the SampleCommand is excecuted.
How do I acheive this in the View Model?</p>

<p>Page1.xaml:</p>

<p>

<br>
</p>

<pre><code>            &lt;r:RibbonTab.Groups&gt;
                &lt;r:RibbonGroup GroupSizeDefinitions="{StaticResource RibbonLayout}"&gt;
                    &lt;r:RibbonGroup.Command&gt;
                        &lt;r:RibbonCommand LabelTitle="RibbonButton"/&gt;
                    &lt;/r:RibbonGroup.Command&gt;
                    &lt;r:RibbonButton x:Name="RibbonButton1" Command="{Binding Path=SampleCommand}"/&gt;
                &lt;/r:RibbonGroup&gt;
            &lt;/r:RibbonTab.Groups&gt;
        &lt;/r:RibbonTab&gt;


    &lt;/r:Ribbon&gt;

    &lt;Border Name="PageBorder" Grid.Row="0" Grid.Column="1"&gt;
        &lt;Frame Name="pageFrame" Source="FirstPage.xaml" /&gt;

    &lt;/Border&gt;
&lt;/DockPanel&gt;
</code></pre>

<p></p>

<p>c#
Page1ViewModel.cs:</p>

<p>RelayCommand _sampleCommand;</p>

<pre><code>    public ICommand SampleCommand
    {
        get
        {
            // create command ??

            return _sampleCommand 
    }
</code></pre>

<p>page1.xaml.cs :</p>

<p>Page1ViewModel pageViewModel;</p>

<p>this.DataContext = pageViewModel; // when pageloads</p>
