public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> suspensionState) { GoogleAnalytics.EasyTracker.GetTracker().SendView("MainPage"); if (suspensionState.Any()) { //Value = suspensionState[nameof(Value)]?.ToString(); } // Read Posts from DB HanuDowsApplication.getInstance().ReadPostsFromDB(false); ObservablePost op = ObservablePost.Instance(); op.Reset(); PostTitle = op.PostTitle; PostMeta = op.PostMeta; PostContent = op.PostContent; DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView(); dataTransferManager.DataRequested += ShareData; await Task.CompletedTask; }
public void PreviousPost() { ObservablePost op = ObservablePost.Instance(); op.PreviousPost(); PostTitle = op.PostTitle; PostMeta = op.PostMeta; PostContent = op.PostContent; }
public void NextPost() { op = ObservablePost.Instance(); op.NextPost(); __setPostData(); }
public void PreviousPost() { op = ObservablePost.Instance(); op.PreviousPost(); __setPostData(); }