Class EventRoute
- Namespace
- nanoFramework.UI
- Assembly
- nanoFramework.Graphics.dll
Container for the route to be followed by a RoutedEvent when raised
public sealed class EventRoute
- Inheritance
-
EventRoute
- Inherited Members
- Extension Methods
Remarks
EventRoute constitues
a non-null nanoFramework.UI.EventRoute.RoutedEvent and an ordered list of (target object, handler list) pairsIt facilitates adding new entries to this list and also allows for the handlers in the list to be invoked
Constructors
EventRoute(RoutedEvent)
Constructor for EventRoute given the associated nanoFramework.UI.EventRoute.RoutedEvent
public EventRoute(RoutedEvent routedEvent)
Parameters
routedEvent
RoutedEventNon-null nanoFramework.UI.EventRoute.RoutedEvent to be associated with this EventRoute
Methods
Add(object, RoutedEventHandler, bool)
Adds this handler for the specified target to the route
public void Add(object target, RoutedEventHandler handler, bool handledEventsToo)
Parameters
target
objectTarget object whose handler is to be added to the route
handler
RoutedEventHandlerHandler to be added to the route
handledEventsToo
boolFlag indicating whether or not the listener wants to hear about events that have already been handled
Remarks
NOTE: It is not an error to add a handler for a particular target instance twice (handler will simply be called twice).