using Prism.Commands;
using Prism.Events;
using Prism.Mvvm;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DownKyi.ViewModels
{
public class ViewUserSpaceViewModel : BaseViewModel
{
public const string Tag = "PageUserSpace";
// mid
private long mid;
public ViewUserSpaceViewModel(IEventAggregator eventAggregator) : base(eventAggregator)
{
}
///
/// 接收mid参数
///
///
public override void OnNavigatedTo(NavigationContext navigationContext)
{
base.OnNavigatedTo(navigationContext);
// 根据传入参数不同执行不同任务
long parameter = navigationContext.Parameters.GetValue("Parameter");
if (parameter == 0)
{
return;
}
mid = parameter;
}
}
}