예제 #1
0
        public MPEUserControl()
        {
            this.InitializeComponent();

            MPE = new MediaPlayerElement();
            MPE.AreTransportControlsEnabled = true;
            MPE.AutoPlay = true;

            MPE.HorizontalAlignment          = HorizontalAlignment.Stretch;
            MPE.VerticalAlignment            = VerticalAlignment.Stretch;
            MPE.MediaPlayer.IsLoopingEnabled = true;
            RootGrid.Children.Add(MPE);
            MPE.SetValue(Grid.RowProperty, 1);
        }
        public MPEUserControl()
        {
            this.InitializeComponent();

            MPE = new MediaPlayerElement();
            MPE.AreTransportControlsEnabled = true;
            MPE.AutoPlay = true;

            MPE.HorizontalAlignment = HorizontalAlignment.Stretch;
            MPE.VerticalAlignment = VerticalAlignment.Stretch;
            MPE.MediaPlayer.IsLoopingEnabled = true;
            RootGrid.Children.Add(MPE);
            MPE.SetValue(Grid.RowProperty, 1);
        }