Пример #1
0
 private void Image_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (_setApplicationImageCommand.CanExecute(null))
     {
         _setApplicationImageCommand.Execute(null);
     }
 }
Пример #2
0
        public void SetAppImage()
        {
            if (!SetApplicationImageCommand.CanExecute(null))
            {
                return;
            }

            SetApplicationImageCommand.Execute(null);
        }
Пример #3
0
 private void Image_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (_setApplicationImageCommand.CanExecute(null))
     {
         _setApplicationImageCommand.Execute(null);
         ViewModel.RaiseApplicationChangedEvent();
         e.Handled = true;
     }
 }