public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/UISample;component/Player.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.sliderTime = ((UISample.CustomMediaSlider)(this.FindName("sliderTime"))); this.txbTime = ((System.Windows.Controls.TextBlock)(this.FindName("txbTime"))); this.PlayButton = ((System.Windows.Controls.Button)(this.FindName("PlayButton"))); this.PauseButton = ((System.Windows.Controls.Button)(this.FindName("PauseButton"))); this.StopButton = ((System.Windows.Controls.Button)(this.FindName("StopButton"))); this.volSlider = ((System.Windows.Controls.Slider)(this.FindName("volSlider"))); this.volNum = ((System.Windows.Controls.TextBlock)(this.FindName("volNum"))); this.media = ((System.Windows.Controls.MediaElement)(this.FindName("media"))); }