C# Class SourceWriter.PreferenceWidowDelegate

Defines a delegate for handling events on our preference window such updating any open windows when the preference window closes.
For more information, please see our Modified Windows Content Docs: https://developer.xamarin.com/guides/mac/user-interface/working-with-windows/#Modified_Windows_Content
Inheritance: NSWindowDelegate
Mostra file Open project: xamarin/mac-samples

Public Methods

Method Description
PreferenceWidowDelegate ( NSWindow window ) : System

Initializes a new instance of the SourceWriter.PreferenceWidowDelegate class.

WindowShouldClose ( Foundation sender ) : bool

Called before an NSWindow is closed. Applies any preference changes to all open windows in the app.

Method Details

PreferenceWidowDelegate() public method

Initializes a new instance of the SourceWriter.PreferenceWidowDelegate class.
public PreferenceWidowDelegate ( NSWindow window ) : System
window NSWindow The NSWindow being managed by the NSWindowController this delegate /// is attached to.
return System

WindowShouldClose() public method

Called before an NSWindow is closed. Applies any preference changes to all open windows in the app.
public WindowShouldClose ( Foundation sender ) : bool
sender Foundation The NSWindowController calling this method.
return bool