File: Microsoft\Windows\Input\IPreviewCommand.cs
Web Access
Project: src\src\Microsoft.DotNet.Wpf\src\System.Windows.Controls.Ribbon\System.Windows.Controls.Ribbon_2jpv0tyv_wpftmp.csproj (System.Windows.Controls.Ribbon)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
        
 
using System.Windows.Input;
 
namespace Microsoft.Windows.Input
{
    /// <summary>
    ///   An interface extending normal Commands to provide a means for previewing commands without actually committing the action.
    /// </summary>
    public interface IPreviewCommand : ICommand
    {
        /// <summary>
        ///   Defines the method that should be executed when the command is previewed.
        /// </summary>
        /// <param name="parameter">A parameter that may be used in executing the preview command. This parameter may be ignored by some implementations.</param>
        void Preview (object parameter);
 
        /// <summary>
        ///   Defines the method that should be executed to cancel previewing of the command.
        /// </summary>
        void CancelPreview ();
    }
}