title: Disable Close Button In Title Bar of a WPF Window (C#)
body: <p>I'd like to know how to disable (not remove/hide) the Close button in a WPF window. I know how to hide it which makes the window's title bar look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/W5BKl.png" alt="enter image description here"></p>
  
  <p>But I want to disable it meaning it should look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/MwbSC.png" alt="enter image description here"></p>
  
  <p>I'm scripting in C# and using WPF (Windows Presentation Foundation).</p>