
Visual Basic (Declaration) | |
---|---|
Public NotInheritable Class ExecutedRoutedEventArgs Inherits Intersoft.Client.Framework.ISRoutedEventArgs |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ExecutedRoutedEventArgs |
C# | |
---|---|
public sealed class ExecutedRoutedEventArgs : Intersoft.Client.Framework.ISRoutedEventArgs |
Delphi | |
---|---|
public class ExecutedRoutedEventArgs = class(Intersoft.Client.Framework.ISRoutedEventArgs)sealed; |
JScript | |
---|---|
public sealed class ExecutedRoutedEventArgs extends Intersoft.Client.Framework.ISRoutedEventArgs |
Managed Extensions for C++ | |
---|---|
public __gc __sealed class ExecutedRoutedEventArgs : public Intersoft.Client.Framework.ISRoutedEventArgs |
C++/CLI | |
---|---|
public ref class ExecutedRoutedEventArgs sealed : public Intersoft.Client.Framework.ISRoutedEventArgs |
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# | ![]() |
---|---|
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.
Intersoft.Client.Framework.ISRoutedEventArgs
Intersoft.Client.Framework.Input.ExecutedRoutedEventArgs
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family