/// <summary> /// 创建新窗体导航消息 /// </summary> /// <param name="exportViewkey">显示的View</param> /// <param name="parameter">创建View时的参数</param> /// <param name="showInTaskBar">是否显示任务条</param> /// <param name="isTopMost">是否置顶显示</param> /// <returns></returns> public static NormalNavigationArgs CreateWindowNavigationArgs(string exportViewkey, object parameter, bool showInTaskBar = false, bool isTopMost = false) { NormalNavigationArgs argsResult = new NormalNavigationArgs(exportViewkey, parameter, showInTaskBar, isTopMost); //记录导航日志 NavigationLogHelper.AddNavigationLog(argsResult, true); return(argsResult); }
/// <summary> /// 创建主界面导航消息 /// </summary> /// <param name="exportViewkey">显示的View</param> /// <param name="parameter">创建View时的参数</param> /// <param name="isBackArgs">是否为返回消息</param> /// <returns></returns> public static NormalNavigationArgs CreateMainViewNavigationArgs(string exportViewkey, object parameter, bool isBackArgs = false) { NormalNavigationArgs argsResult = new NormalNavigationArgs(exportViewkey, parameter); argsResult.IsBackArgs = isBackArgs; //记录导航日志 NavigationLogHelper.AddNavigationLog(argsResult, false); return(argsResult); }