Renamed OnClose to _OnClose for symmetry with other such methods. (MainWindow.ShowLegend): Show the legend docked by default.