You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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 ViewPublicFavoritesViewModel : BaseViewModel
|
|
|
|
|
{
|
|
|
|
|
public const string Tag = "PagePublicFavorites";
|
|
|
|
|
|
|
|
|
|
// 收藏夹id
|
|
|
|
|
private long favoritesId;
|
|
|
|
|
|
|
|
|
|
public ViewPublicFavoritesViewModel(IEventAggregator eventAggregator) : base(eventAggregator)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 接收收藏夹id参数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="navigationContext"></param>
|
|
|
|
|
public override void OnNavigatedTo(NavigationContext navigationContext)
|
|
|
|
|
{
|
|
|
|
|
base.OnNavigatedTo(navigationContext);
|
|
|
|
|
|
|
|
|
|
// 根据传入参数不同执行不同任务
|
|
|
|
|
long parameter = navigationContext.Parameters.GetValue<long>("Parameter");
|
|
|
|
|
if (parameter == 0)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
favoritesId = parameter;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|