title: Set button controls as minimize/maximize/close buttons in NavigationWindow application?
body: <p>I am newbie in WPF and C#, but I started to develope a WPF NavigationWindow application. I want it to be chromeless window with custom maximize/minimize controls. But when I set events for my buttons, they don't affect the window.</p>
  
  <p>Here's my XAML:</p>
  
  <pre><code>&lt;NavigationWindow x:Class="app.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="app title" Height="600" Width="800" MinHeight="600" MinWidth="800" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Icon="appIcon.ico" Source="starting.xaml"&gt;
  &lt;/NavigationWindow&gt;
  </code></pre>
  
  <p>here is my click event for the button:</p>
  
  <pre><code>private void Button_Click_1(object sender, RoutedEventArgs e)
          {
              MainWindow window = new MainWindow();
              window.WindowState = WindowState.Minimized;
          }
  </code></pre>
  
  <p>Forgive me, if I am duplicating question, and also keep in mind, that I am new in this kind of programming :) so help, please</p>