예제 #1
0
        public static async Task Unsend(this InstaDirectInboxItemWrapper item)
        {
            var result = await Api.UnsendMessageAsync(item.Parent.ThreadId, item.ItemId);

            if (result.IsSucceeded)
            {
                await item.Parent.RemoveItem(item.ItemId);
            }
        }
예제 #2
0
 public ImmersiveView(InstaDirectInboxItemWrapper item, InstaMediaType mediaType)
 {
     this.InitializeComponent();
     _item = item;
     if (mediaType == InstaMediaType.Image)
     {
         ContentControl.MinHeight       = ((Frame)Window.Current.Content).ActualHeight * 0.8;
         ContentControl.ContentTemplate = (DataTemplate)Resources["ImageView"];
     }
     else
     {
         ContentControl.ContentTemplate = (DataTemplate)Resources["VideoView"];
     }
 }