public Controls(Example1 Parent)
        {
            parent = Parent;

            InitializeComponent();

            PlayButton.Click += PlayButton_Click;
            StopButton.Click += StopButton_Click;
        }
Beispiel #2
0
        public Controls(Example1 Parent)
        {
            parent = Parent;

            InitializeComponent();

            // we need the VideoView to be fully loaded before setting a MediaPlayer on it.
            parent.VideoView.Loaded += VideoView_Loaded;
            PlayButton.Click        += PlayButton_Click;
            StopButton.Click        += StopButton_Click;
        }
        void Example1Btn_Click(object sender, RoutedEventArgs e)
        {
            var window = new Example1();

            window.Show();
        }