public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SMF_SmoothStreaming1;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.btnPlay = ((System.Windows.Controls.Button)(this.FindName("btnPlay"))); this.btnReplay = ((System.Windows.Controls.Button)(this.FindName("btnReplay"))); this.btnRW = ((System.Windows.Controls.Button)(this.FindName("btnRW"))); this.btnFF = ((System.Windows.Controls.Button)(this.FindName("btnFF"))); this.btnPreviousPlaylistItem = ((System.Windows.Controls.Button)(this.FindName("btnPreviousPlaylistItem"))); this.btnNextPlaylistItem = ((System.Windows.Controls.Button)(this.FindName("btnNextPlaylistItem"))); this.btnToggleCaptions = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnToggleCaptions"))); this.btnFullScreen = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("btnFullScreen"))); this.player = ((Microsoft.SilverlightMediaFramework.Core.SMFPlayer)(this.FindName("player"))); }
/// <summary> /// Passes a reference to the Player /// </summary> /// <param name="Player">A reference to the Player</param> public void SetPlayer(FrameworkElement Player) { _player = Player as Microsoft.SilverlightMediaFramework.Core.SMFPlayer; Load(); }