Declarated a variable in WPF and i used it for another WPF wich C# : <p>I have a project with WPF when i introduce a UrlTxt in textbox with name txtCmdUrl
This is my code XAML station.xaml</p>

<pre><code>&lt;UserControl .....&gt;


  &lt;Grid x:Name="GridGlobal"&gt;
     &lt;DockPanel Background="White" Margin="5" &gt;
            &lt;StackPanel DockPanel.Dock="Left" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10 0 10 0"&gt;
                &lt;StackPanel Orientation="Horizontal"&gt;

                    **&lt;TextBox x:Name="txtCommandeUrl"  Width="500" 
                       Height="24" VerticalAlignment="Center"  /&gt;**
                    &lt;mui:ModernButton x:Name="btnSave" Content="{x:Static 
                       p:Resources.Link_Save_Link}" Click="BtnSave_Click" 
                       VerticalAlignment="Center" Command="{Binding 
                      NextCommand, Mode=TwoWay}" IsEnabled="{Binding 
                    NextEnabled}"/&gt;                        
                &lt;/StackPanel&gt;
            &lt;/StackPanel&gt;
  &lt;/Grid&gt;
&lt;/UserControl&gt; 
</code></pre>

<p>And in my code behind i used my click button with this code</p>

<pre><code>    private string txtUrlStation = "";

    //BtnSave_Click
    private void BtnSave_Click(object sender, RoutedEventArgs e)
    {            
        try
        {
            txtUrlStation = txtCommandeUrl.Text;
            MessageBox.Show(txtSave);                                
        }
        catch
        {
        }
    }
</code></pre>

<p>I want to use my variable <strong>txtCommandeUrl</strong> for another file.xaml exemple station2.xaml in the code behind also.</p>

<p>Who can to help me in this small problem and Thanks  </p>
