private void Mfi_Click(object sender, RoutedEventArgs e)
 {
     if (sender != null)
     {
         try
         {
             MenuFlyoutItem mfi     = sender as MenuFlyoutItem;
             ItemSub        itemSub = mfi.Tag as ItemSub;
             if (itemSub != null && itemSub.File != null)
             {
                 ImportSubtitle(itemSub.File);
             }
         }
         catch (Exception ex) { HelperUP.Output("mediaElement_DoubleTapped ex: " + ex.Message); }
     }
 }
        private void PlayerPage_Loaded(object sender, RoutedEventArgs e)
        {
            DispatcherTimer t = new DispatcherTimer();

            t.Interval = TimeSpan.FromSeconds(3);
            t.Tick    += (s, ss) =>
            {
                t.Stop();
                if (subList != null && subList.Any())
                {
                    for (int i = 0; i < subList.Count; i++)
                    {
                        ItemSub        item = subList[i];
                        MenuFlyoutItem mfi  = new MenuFlyoutItem();
                        mfi.Text   = item.Name;
                        mfi.Tag    = item;
                        mfi.Click += Mfi_Click;
                        customMTC.menuFlyoutRelativeSubs.Items.Add(mfi);
                    }
                }
            };
            t.Start();
        }