Exemplo n.º 1
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/VideoPlayer;component/Page.xaml", System.UriKind.Relative));
     this.controlsIn        = ((System.Windows.Media.Animation.Storyboard)(this.FindName("controlsIn")));
     this.controlsOut       = ((System.Windows.Media.Animation.Storyboard)(this.FindName("controlsOut")));
     this.LayoutRoot        = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PlayIcon          = ((System.Windows.Controls.Canvas)(this.FindName("PlayIcon")));
     this.LargeSpinnerArea  = ((System.Windows.Controls.Canvas)(this.FindName("LargeSpinnerArea")));
     this.BigBuffer         = ((VideoPlayer.spinner)(this.FindName("BigBuffer")));
     this.Thumbnail         = ((System.Windows.Controls.Canvas)(this.FindName("Thumbnail")));
     this.ThumbnailImage    = ((System.Windows.Controls.Image)(this.FindName("ThumbnailImage")));
     this.LayoutRoot2       = ((System.Windows.Controls.StackPanel)(this.FindName("LayoutRoot2")));
     this.mediaPlayer       = ((System.Windows.Controls.MediaElement)(this.FindName("mediaPlayer")));
     this.controlsContainer = ((System.Windows.Controls.Grid)(this.FindName("controlsContainer")));
     this.mediaControls     = ((VideoPlayer.mediaControl)(this.FindName("mediaControls")));
 }
Exemplo n.º 2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/VideoPlayer;component/mediaControl.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.gridCol1       = ((System.Windows.Controls.Grid)(this.FindName("gridCol1")));
     this.btnPlay        = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnPlay")));
     this.gridCol2       = ((System.Windows.Controls.Grid)(this.FindName("gridCol2")));
     this.tbCurrentTime  = ((System.Windows.Controls.TextBlock)(this.FindName("tbCurrentTime")));
     this.tbTotalTime    = ((System.Windows.Controls.TextBlock)(this.FindName("tbTotalTime")));
     this.sliderTimeline = ((VideoPlayer.CustomSlider)(this.FindName("sliderTimeline")));
     this.gridCol3       = ((System.Windows.Controls.Grid)(this.FindName("gridCol3")));
     this.spinner        = ((VideoPlayer.spinner)(this.FindName("spinner")));
     this.gridCol4       = ((System.Windows.Controls.Grid)(this.FindName("gridCol4")));
     this.btnSpeaker     = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnSpeaker")));
     this.sliderVolume   = ((System.Windows.Controls.Slider)(this.FindName("sliderVolume")));
     this.gridCol5       = ((System.Windows.Controls.Grid)(this.FindName("gridCol5")));
     this.btnFullScreen  = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnFullScreen")));
 }