Table of Contents

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) pairs

It 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 RoutedEvent

Non-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 object

Target object whose handler is to be added to the route

handler RoutedEventHandler

Handler to be added to the route

handledEventsToo bool

Flag 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).