public void ItemLinked(object sender, LinkUnlinkEventArgs e) { var last = Days.Last(); if (e.ContentPresenter.Content.Equals(last)) { Days.Add(last.AddDays(1)); } }
void LongList_Link(object sender, LinkUnlinkEventArgs e) { if (canAddImages) { Movie item = (Movie)e.ContentPresenter.Content; if (item.ID == lst[visiblePages - 1].Last().ID) { canAddImages = false; visiblePages++; AppSettings.Instance.Storage.GetNowPlaying(visiblePages, UpdateViewWithData, new DateTime(), "null"); } } }
/// <summary> /// Called when an item gets unrealized. /// </summary> void OnUnlink(object sender, LinkUnlinkEventArgs e) { if (Unlink != null) { Unlink(this, e); } }
private void LoadMoreMessages_Link(object sender, LinkUnlinkEventArgs e) { var message = (Message)e.ContentPresenter.Content; var index = model.Messages.IndexOf(message); if (index + 1 == model.Messages.Count) LoadMessages(); }