C# Class WinRTXamlToolkit.Controls.Extensions.MessageDialogExtensions

MessageDialog extension methods
Exibir arquivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
AddButton ( this dialog, string caption, System.Action action ) : void

Adds a button to the MessageDialog with given caption and action.

ShowIfPossibleAsync ( this dialog ) : Task

Begins an asynchronous operation showing a dialog. If another dialog is already shown using ShowQueuedAsync or ShowIfPossibleAsync method - it will wait return immediately and the new dialog won't be displayed.

ShowQueuedAsync ( this dialog ) : Task

Begins an asynchronous operation showing a dialog. If another dialog is already shown using ShowQueuedAsync or ShowIfPossibleAsync method - it will wait for that previous dialog to be dismissed before showing the new one.

ShowTwoOptionsDialog ( string text, string leftButtonText, string rightButtonText, System.Action leftButtonAction, System.Action rightButtonAction ) : IAsyncOperation

Shows a dialog with two options to choose from

Method Details

AddButton() public static method

Adds a button to the MessageDialog with given caption and action.
public static AddButton ( this dialog, string caption, System.Action action ) : void
dialog this
caption string
action System.Action
return void

ShowIfPossibleAsync() public static method

Begins an asynchronous operation showing a dialog. If another dialog is already shown using ShowQueuedAsync or ShowIfPossibleAsync method - it will wait return immediately and the new dialog won't be displayed.
This method can only be invoked from UI thread.
public static ShowIfPossibleAsync ( this dialog ) : Task
dialog this The dialog.
return Task

ShowQueuedAsync() public static method

Begins an asynchronous operation showing a dialog. If another dialog is already shown using ShowQueuedAsync or ShowIfPossibleAsync method - it will wait for that previous dialog to be dismissed before showing the new one.
This method can only be invoked from UI thread.
public static ShowQueuedAsync ( this dialog ) : Task
dialog this The dialog.
return Task

ShowTwoOptionsDialog() public static method

Shows a dialog with two options to choose from
public static ShowTwoOptionsDialog ( string text, string leftButtonText, string rightButtonText, System.Action leftButtonAction, System.Action rightButtonAction ) : IAsyncOperation
text string
leftButtonText string
rightButtonText string
leftButtonAction System.Action
rightButtonAction System.Action
return IAsyncOperation