Intersoft ClientUI Documentation
ExecutedRoutedEventArgs Class
Members 



Provides data for the Executed and PreviewExecuted routed events.
Object Model
ExecutedRoutedEventArgs ClassRoutedEvent Class
Syntax
Public NotInheritable Class ExecutedRoutedEventArgs 
   Inherits Intersoft.Client.Framework.ISRoutedEventArgs
Dim instance As ExecutedRoutedEventArgs
public sealed class ExecutedRoutedEventArgs : Intersoft.Client.Framework.ISRoutedEventArgs 
public ref class ExecutedRoutedEventArgs sealed : public Intersoft.Client.Framework.ISRoutedEventArgs 
Remarks

ExecutedRoutedEventHandler represents the method that implements the command logic of a RoutedCommand. Separating the implementation logic from the command allows the command to be invoked from different sources and types and enables the centralization of command logic.

This event data class is also used for CommandManager .Executed and CommandManager .PreviewExecuted. But most practical handlers will handle the Executed events from a particular CommandBinding, rather than work at the CommandManager level.

The following code example shows the event handler for the Executed routed event for the CommandBinding which is associated to a routed command.

C#
Copy Code
private void CutExecuted(object sender, ExecutedRoutedEventArgs e)
{
     string command = ((RoutedCommand)e.Command).Name;
     string target = ((FrameworkElement)e.OriginalSource).Name;

     MessageBox.Show("The " + command +  " command has been invoked on target object " + target);
}

For a more complete version of the above example, see How-to: Implement a RoutedCommand. For more information on commanding, see Commanding Overview.

Inheritance Hierarchy

System.Object
   System.EventArgs
      System.Windows.RoutedEventArgs
         Intersoft.Client.Framework.ISRoutedEventArgs
            Intersoft.Client.Framework.Input.ExecutedRoutedEventArgs

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ExecutedRoutedEventArgs Members
Intersoft.Client.Framework.Input Namespace

Send Feedback