C# Класс Microsoft.HockeyApp.Tools.NotificationTool

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Close void
ClosePopup void
CreateNotificationBox Microsoft.HockeyApp.Controls.NotificationBox.NotificationBox
HandleBackKeyAndAppBar void
OpenPopup void
SafeShow void
TryFindTemplate System.Windows.DataTemplate
parentPage_BackKeyPress void

Открытые методы

Метод Описание
Show ( string title, string message ) : void

Displays a notification box with title, message and custom actions.

ShowAgain ( string title, string message, bool forceShowAgain, Action suppression, string uniqueKey ) : void

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.

ShowAgain ( string title, string message, string showAgainText, bool forceShowAgain, Action suppression, string uniqueKey ) : void

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.

Приватные методы

Метод Описание
Close ( ) : void
ClosePopup ( ) : void
CreateNotificationBox ( string title, string message, NotificationAction commands, Visibility showAgainVisibility = Visibility.Collapsed, bool showAgain = true, string showAgainText = null, string uniqueKey = null ) : NotificationBox
HandleBackKeyAndAppBar ( ) : void
OpenPopup ( ) : void
SafeShow ( Dispatcher dispatcher, System.Action showAction ) : void
TryFindTemplate ( object templateKey ) : System.Windows.DataTemplate
parentPage_BackKeyPress ( object sender, CancelEventArgs e ) : void

Описание методов

Show() публичный статический Метод

Displays a notification box with title, message and custom actions.
public static Show ( string title, string message ) : void
title string The title of this message.
message string The message body text.
Результат void

ShowAgain() публичный статический Метод

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.
public static ShowAgain ( string title, string message, bool forceShowAgain, Action suppression, string uniqueKey ) : void
title string The title of this message.
message string The message body text.
forceShowAgain bool Value indicating whether to force message display in case that the user suppressed this message,
suppression Action Callback for indicating whether message suppressed or not..
uniqueKey string Unique key representing a specific message identity.
Результат void

ShowAgain() публичный статический Метод

Displays a notification box with title, message and custom actions. In addition a message asking if this message should be shown again next time.
public static ShowAgain ( string title, string message, string showAgainText, bool forceShowAgain, Action suppression, string uniqueKey ) : void
title string The title of this message.
message string The message body text.
showAgainText string The text asking if this message should be shown again.
forceShowAgain bool Value indicating whether to force message display in case that the user suppressed this message,
suppression Action Callback for indicating whether message suppressed or not..
uniqueKey string Unique key representing a specific message identity.
Результат void