-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
namespace Prism.Dialogs; | ||
|
||
/// <summary> | ||
/// Provides a way for objects involved in Dialogs to be notified of Dialog activities. | ||
/// </summary> | ||
public interface IDialogAware | ||
{ | ||
/// <summary> | ||
/// Evaluates whether the Dialog is in a state that would allow the Dialog to Close | ||
/// </summary> | ||
/// <returns><c>true</c> if the Dialog can close</returns> | ||
bool CanCloseDialog(); | ||
|
||
/// <summary> | ||
/// Provides a callback to clean up resources or finalize tasks when the Dialog has been closed | ||
/// </summary> | ||
void OnDialogClosed(); | ||
|
||
/// <summary> | ||
/// Initializes the state of the Dialog with provided DialogParameters | ||
/// </summary> | ||
/// <param name="parameters"></param> | ||
void OnDialogOpened(IDialogParameters parameters); | ||
|
||
/// <summary> | ||
/// The <see cref="DialogCloseEvent"/> will be set by the <see cref="IDialogService"/> and can be called to | ||
/// invoke the close of the Dialog. | ||
/// </summary> | ||
DialogCloseEvent RequestClose { get; set; } | ||
} |