初步完成历史记录(未完成)
This commit is contained in:
@@ -15,5 +15,12 @@ public interface INavigationService
|
||||
/// <param name="viewKey">在DI容器中注册的目标视图的唯一键(通常是ViewModel的名称)。</param>
|
||||
/// <param name="parameter">要传递给目标ViewModel的参数。</param>
|
||||
Task NavigateToAsync(MenuItemViewModel menu);
|
||||
|
||||
/// <summary>
|
||||
/// 导航到由唯一键标识的视图,并传递一个参数。
|
||||
/// </summary>
|
||||
/// <param name="viewKey">在DI容器中注册的目标视图的唯一键(通常是ViewModel的名称)。</param>
|
||||
/// <param name="parameter">要传递给目标ViewModel的参数。</param>
|
||||
Task NavigateToAsync(string viewKey, object parameter = null);
|
||||
|
||||
}
|
||||
|
||||
13
DMS.WPF/Interfaces/IParameterReceiver.cs
Normal file
13
DMS.WPF/Interfaces/IParameterReceiver.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace DMS.WPF.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// 定义了可以接收导航参数的接口
|
||||
/// </summary>
|
||||
public interface IParameterReceiver
|
||||
{
|
||||
/// <summary>
|
||||
/// 接收导航参数
|
||||
/// </summary>
|
||||
/// <param name="parameter">传递的参数</param>
|
||||
void ReceiveParameter(object parameter);
|
||||
}
|
||||
Reference in New Issue
Block a user