C# Class SourceWriter.PreviewWindowDelegate

Defines a delegate for handling events on our text editor window such as asking the user to save changes to a document before closing the window.
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
Show file Open project: xamarin/mac-samples

Public Methods

Method Description
PreviewWindowDelegate ( PreviewWindowController windowController ) : System

Initializes a new instance of the SourceWriter.PreviewWindowDelegate class.

WillClose ( NSNotification notification ) : void

This method is called when a windows is closed

WindowShouldClose ( NSObject sender ) : bool

This method is called before a window is closed.

Method Details

PreviewWindowDelegate() public method

Initializes a new instance of the SourceWriter.PreviewWindowDelegate class.
public PreviewWindowDelegate ( PreviewWindowController windowController ) : System
windowController PreviewWindowController Window controller.
return System

WillClose() public method

This method is called when a windows is closed
public WillClose ( NSNotification notification ) : void
notification NSNotification The close notification..
return void

WindowShouldClose() public method

This method is called before a window is closed.
public WindowShouldClose ( NSObject sender ) : bool
sender NSObject The object requesting the close.
return bool