title: how to Hide buttons in usercontrol from main window?
body: <p>I have a user control that have a multi buttons and In the application i use this  user control on multi windows ,but i want to Collapsed (shown/hidden) some buttons if the user select in the application a window 1 and show same button if the user select in the application a window 2</p>
  
  <p><strong>UserControl</strong> </p>
  
  <pre><code>&lt;Grid x:Name="girdBtuWidow" &gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;Button Content="add" x:Name="add" Visibility="{Binding window1_Loaded}" x:FieldModifier="public" Height="50"  Width="100" Margin="0"  Click="add_click"  /&gt;
          &lt;Button Content="show history" x:Name="Personal" Height="50"  Width="100" Margin="0" /&gt;
          &lt;Button Content="Show Customer" x:Name="Customer" Height="50"  Width="100" Margin="0" /&gt;
      &lt;/StackPanel&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>how to set the property (Visibility) of button in the User Control from the application window ?</p>