My blog about software development on the Microsoft® stack.

WPF on .NET Core

Microsoft announced at Build 2018 back in May that they are bringing .NET Core to the Windows desktop applications frameworks, including both WPF and Windows Forms. This means that your client applications will be able to take advantage of the various performance improvements that have been introduced in .NET Core and that you will be able to deploy them as self-contained executables (.exes) that have no dependency upon any pre-installed version of .NET. Read ┬╗


Disabling or hiding the minimize, maximize or close button of a WPF window

There may be situations when you want to hide or disable the minimize, maximize, or close button of a window without having to modify the style of the window in any other way. In a Windows Forms application there are the MinimizeBox and MaximizeBox boolean properties that lets you disable the minimize and maximize button of a Form respecively or hide them both (setting both of these properties to false will effectively hide both these buttons):

public partial class Form1 : Form
{
  public Form1() {
    InitializeComponent();

    this.MinimizeBox = false;
    this.MaximizeBox = false;
  }
}

Read ┬╗