Пример #1
0
        public EffectsWindow(ProcessingUserControlViewModel processingUserControlViewModel, double top = -1, double left = -1)
        {
            InitializeComponent();
            ViewModel   = new EffectsWindowViewModel(processingUserControlViewModel, this);
            DataContext = ViewModel;
            processingUserControlViewModel.UserControl.buttonImageEffects.Content = "Close";

            if (top > -1 && left > -1)
            {
                Top  = top;
                Left = left;
            }
        }
 public ProcessingUserControl(MainWindow mainWindow)
 {
     InitializeComponent();
     ViewModel   = new ProcessingUserControlViewModel(mainWindow, this);
     DataContext = ViewModel;
 }