ExecutedRoutedEventArgs Class
.NET Framework 3.0
Provides data for the Executed and PreviewExecuted events.
Namespace: System.Windows.Input
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
'Declaration Public NotInheritable Class ExecutedRoutedEventArgs Inherits RoutedEventArgs 'Usage Dim instance As ExecutedRoutedEventArgs
public final class ExecutedRoutedEventArgs extends RoutedEventArgs
public final class ExecutedRoutedEventArgs extends RoutedEventArgs
You cannot use this managed class in XAML.
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.
For more information on commanding, see Commanding Overview.
The following example creates an ExecutedRoutedEventHandler that opens a MessageBox when the command is executed.
Sub OpenCmdExecuted(ByVal sender As Object, ByVal e As ExecutedRoutedEventArgs) Dim command, targetobj As String command = CType(e.Command, RoutedCommand).Name targetobj = CType(sender, FrameworkElement).Name MessageBox.Show("The " + command + " command has been invoked on target object " + targetobj) End Sub
System.Object
System.EventArgs
System.Windows.RoutedEventArgs
System.Windows.Input.ExecutedRoutedEventArgs
System.EventArgs
System.Windows.RoutedEventArgs
System.Windows.Input.ExecutedRoutedEventArgs
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: