Пример #1
0
        private static void OnSizeChanged(object obj, DependencyPropertyChangedEventArgs args)
        {
            YouTubeVideoPlayer player = (YouTubeVideoPlayer)obj;

            //Set the container just a little bigger than the video.
            player.Height = player.PlayerHeight + 30;
            player.Width  = player.PlayerWidth + 30;
        }
Пример #2
0
        private static void OnSourceChanged(object obj, DependencyPropertyChangedEventArgs args)
        {
            YouTubeVideoPlayer player = (YouTubeVideoPlayer)obj;

            if (player._webView != null)
            {
                player.Refresh();
            }
        }