using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using System.Windows.Media.Effects; using PCScreenSavers.ViewModel; using PCScreenSavers.Business; namespace PCScreenSavers.Win { /// /// MsgBoxWin.xaml 的交互逻辑 /// public partial class ProgressWin : Window { private PlayBackManage pbm = new PlayBackManage(); private ProgressViewModel viewModel = new ProgressViewModel(); public ProgressWin() { InitializeComponent(); } private void Window_Loaded(object sender, RoutedEventArgs e) { //BlurEffect effect = new BlurEffect(); //effect.Radius = 6; //effect.KernelType = KernelType.Box; //Application.Current.Windows[0].Effect = effect; this.DataContext = viewModel; } private void Window_Closed(object sender, EventArgs e) { //Application.Current.Windows[0].Effect = null; } } }