Accessing MainView.Window.Closing

What is the most elegant way of adding a delegate to MainView.Window.Closing?
I keep getting the non-static - static, error message when compiling and I can for some odd reason not think of a solution.

So I would like something I can either call at launch like this:

MainView.Window.Closing += saveSettings(null, null);

You can try this:

Fuse.App.Current.Window.Closing += ...

It was exactly what is was looking for, thanks! :slight_smile: