UIElement.RaiseEvent Method
Assembly: PresentationCore (in presentationcore.dll)
'Declaration Public Sub RaiseEvent ( _ e As RoutedEventArgs _ ) 'Usage Dim instance As UIElement Dim e As RoutedEventArgs instance.RaiseEvent(e)
public final void RaiseEvent ( RoutedEventArgs e )
public final function RaiseEvent ( e : RoutedEventArgs )
You cannot use methods in XAML.
Parameters
- e
A RoutedEventArgs that contains the event data and also identifies the event to raise.
The e parameter is typed as the common base type for all routed event data; however, the event data should be given as the most specific event data type that is available for the event being raised, because RoutedEventArgs derived classes contain the actual specific data properties that are intended for the specific event when it is raised.
RoutedEventArgs is not just the state properties for the event; it also identifies which routed event to raise. This event-raising pattern and the routed event data both differ from common language runtime (CLR) events and data classes, which typically just contain properties that are related to the event.
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.Reference
UIElement ClassUIElement Members
System.Windows Namespace