The event args for the Link/Unlink events.
Inheritance: System.EventArgs
 public void ItemLinked(object sender, LinkUnlinkEventArgs e)
 {
     var last = Days.Last();
     
     if (e.ContentPresenter.Content.Equals(last))
     {
         Days.Add(last.AddDays(1));
     }
 }
示例#2
0
 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");
         }
     }
 }
示例#3
0
 /// <summary>
 /// Called when an item gets unrealized.
 /// </summary>
 void OnUnlink(object sender, LinkUnlinkEventArgs e)
 {
     if (Unlink != null)
     {
         Unlink(this, e);
     }
 }
示例#4
0
        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();
        }