Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            media.UnloadedBehavior = MediaState.Manual;


            fullWindow = new FullWindow();
            fullWindow.Show();
        }
Ejemplo n.º 2
0
        //---------------------------------------------------------------------


        //-------------------------- 事件处理 -----------------------------

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (currentAudioPath != null)
            {
                media.Pause();
                fullWindow.Show();
                fullWindow.ChangeSource(new Uri(currentAudioPath));
                if (!btnFull.IsChecked.Value)
                {
                    fullWindow.VideoStop();
                    fullWindow.Visibility = Visibility.Hidden;
                }
            }
        }