C# Class WPFNotification.Core.NotifyBox

显示文件 Open project: muhammad-magdy/WPFToastNotification

Public Methods

Method Description
ClearNotifications ( ) : void

Remove all notifications from notification list and buffer list.

Show ( Window window, System.TimeSpan displayDuration, NotificationFlowDirection notificationFlowDirection ) : void

Shows the specified window as a notification.

Show ( object content ) : void

Shows the specified notification.

Show ( object content, NotificationConfiguration configuration ) : void

Shows the specified notification.

Private Methods

Method Description
NotifyBox ( ) : System

Initialises static members of the NotifyBox class.

OnTimerElapsed ( WindowInfo windowInfo ) : void

Called when the timer has elapsed. Removes any stale notifications.

SetWindowDirection ( Window window, NotificationFlowDirection notificationFlowDirection ) : void

Display the notification window in specified direction of the screen

Window_Closed ( object sender, EventArgs e ) : void

Called when the window is about to close. Remove the notification window from notification windows list and add one from the buffer list.

Method Details

ClearNotifications() public static method

Remove all notifications from notification list and buffer list.
public static ClearNotifications ( ) : void
return void

Show() public static method

Shows the specified window as a notification.
public static Show ( Window window, System.TimeSpan displayDuration, NotificationFlowDirection notificationFlowDirection ) : void
window System.Windows.Window The window.
displayDuration System.TimeSpan The display duration.
notificationFlowDirection NotificationFlowDirection
return void

Show() public static method

Shows the specified notification.
public static Show ( object content ) : void
content object The notification content.
return void

Show() public static method

Shows the specified notification.
public static Show ( object content, NotificationConfiguration configuration ) : void
content object The notification content.
configuration WPFNotification.Core.Configuration.NotificationConfiguration The notification configuration object.
return void