添加项目文件。
This commit is contained in:
46
OrpaonEMS.Core/NavigationViewModel.cs
Normal file
46
OrpaonEMS.Core/NavigationViewModel.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using Prism.Mvvm;
|
||||
using Prism.Regions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrpaonEMS.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航的基类
|
||||
/// </summary>
|
||||
public class NavigationViewModel : BindableBase, INavigationAware
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否重用导航对象
|
||||
/// </summary>
|
||||
/// <param name="navigationContext"></param>
|
||||
/// <returns></returns>
|
||||
public virtual bool IsNavigationTarget(NavigationContext navigationContext)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导航被切换触发
|
||||
/// </summary>
|
||||
/// <param name="navigationContext"></param>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public virtual void OnNavigatedFrom(NavigationContext navigationContext)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导航被执行触发
|
||||
/// </summary>
|
||||
/// <param name="navigationContext"></param>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public virtual void OnNavigatedTo(NavigationContext navigationContext)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user