public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { base.OnNavigatedTo(e, viewModelState); var parameter = ParameterBase.ToObject <NovelDetailParameter>((string)e.Parameter); Initialize(parameter); }
public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { base.OnNavigatedTo(e, viewModelState); var parameter = ParameterBase.ToObject <IllustDetailParameter>((string)e.Parameter); _categoryService.UpdateCategory(); Thumbnailable = new PixivImage(parameter.Illust, _imageStoreService, true); }
public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { base.OnNavigatedTo(e, viewModelState); var parameter = ParameterBase.ToObject <FollowingParameter>((string)e.Parameter); if (_accountService.IsLoggedIn) { Initialize(parameter); } else { RunHelper.RunLaterUI(RedirectToLoginPage, parameter, TimeSpan.FromMilliseconds(10)); } }
private async void Follow() { if (IsFollowing) { await _pixivClient.User.Follow.DeleteAsunc(user_id => _id, restrict => "public"); } else { await _pixivClient.User.Follow.AddAsync(user_id => _id, restrict => "public"); } IsFollowing = !IsFollowing; var param = ParameterBase.ToObject <UserDetailParameter>(Parameter[1]); ((User)param.Detail.User).IsFollowed = IsFollowing; Initialize(param, false); }
public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { base.OnNavigatedTo(e, viewModelState); var parameter = ParameterBase.ToObject <IllustDetailParameter>((string)e.Parameter); if (parameter.Illust != null) { Initialize(parameter); } else { var param = ParameterBase.ToObject <DetailByIdParameter>((string)e.Parameter); Initialize(param); } _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; }
public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { base.OnNavigatedTo(e, viewModelState); _parameter = ParameterBase.ToObject <RedirectParameter>(e?.Parameter.ToString()); _navigationService.RemoveAllPages("Error.LoginRequired"); }
public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { base.OnNavigatedTo(e, viewModelState); _parameter = ParameterBase.ToObject <RedirectParameter>(e.Parameter?.ToString()); }