public void Add_A_Video(string MyFileName, bool autoStart, Guid thumbID)
        {
            TouchVideoPlayer myPlayer = new TouchVideoPlayer(MyFileName, autoStart, thumbID);

            int MyVideoNo = this.Children.Count;

            myPlayer.IsManipulationEnabled = true;
            myPlayer.RenderTransform       = new MatrixTransform(1, 0, 0, 1, 200 + 10 * MyVideoNo, 200 + 10 * MyVideoNo);

            this.Children.Add(myPlayer);
        }
        private TouchVideoPlayer FindVideoPlayer(Guid thumbID)
        {
            foreach (UIElement elem in this.Children)
            {
                TouchVideoPlayer videoplayer = elem as TouchVideoPlayer;

                if (videoplayer != null)
                {
                    if (videoplayer.ThumbID == thumbID)
                    {
                        return(videoplayer);
                    }
                }
            }

            return(null);
        }
        public void RemoveVideoPlayer(Guid thumID)
        {
            TouchVideoPlayer player = FindVideoPlayer(thumID);

            RemoveVideoPlayer(player);
        }
 private void RemoveVideoPlayer(TouchVideoPlayer player)
 {
     this.Children.Remove(player);
 }