更新 Dialog弹出框模式
This commit is contained in:
1 parent
74e59b4892
commit
dd512a0dcb
13 files changed
+988
-2
No files matched your search
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
namespace Prism.Services.Dialogs
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface that provides dialog functions and events to ViewModels.
|
||||
/// </summary>
|
||||
public interface IDialogAware
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines if the dialog can be closed.
|
||||
/// </summary>
|
||||
/// <returns>If <c>true</c> the dialog can be closed. If <c>false</c> the dialog will not close.</returns>
|
||||
bool CanCloseDialog();
|
||||
|
||||
/// <summary>
|
||||
/// Called when the dialog is closed.
|
||||
/// </summary>
|
||||
void OnDialogClosed();
|
||||
|
||||
/// <summary>
|
||||
/// Called when the dialog is opened.
|
||||
/// </summary>
|
||||
/// <param name="parameters">The parameters passed to the dialog.</param>
|
||||
void OnDialogOpened(IDialogParameters parameters);
|
||||
|
||||
/// <summary>
|
||||
/// The title of the dialog that will show in the window title bar.
|
||||
/// </summary>
|
||||
string Title { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Instructs the <see cref="IDialogWindow"/> to close the dialog.
|
||||
/// </summary>
|
||||
event Action<IDialogResult> RequestClose;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user