ChocoPM.Commands.DataContextCommandBinding.OnPreviewExecuted C# (CSharp) Method

OnPreviewExecuted() protected method

The method that is called when the PreviewExecuted RoutedEvent for the ICommand associated with this DataContextCommandBinding should be handled.
protected OnPreviewExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object The command target on which the command is executing.
e System.Windows.Input.ExecutedRoutedEventArgs The event data.
return void
        protected internal override void OnPreviewExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var target = GetDataContext(sender);
            bool canExecute;
            if (CommandExecutionManager.TryExecuteCommand(target, e.Parameter, true, PreviewExecuted, PreviewCanExecute, out canExecute))
                e.Handled = true;
        }