C# 클래스 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
상속: NSWindowDelegate
파일 보기 프로젝트 열기: xamarin/mac-samples

공개 메소드들

메소드 설명
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.

메소드 상세

PreviewWindowDelegate() 공개 메소드

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

WillClose() 공개 메소드

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

WindowShouldClose() 공개 메소드

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