Search Results for

    Show / Hide Table of Contents

    Class EventRoute

    Container for the route to be followed by a RoutedEvent when raised

    Inheritance
    object
    EventRoute
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: nanoFramework.UI
    Assembly: nanoFramework.Graphics.dll
    Syntax
    public sealed class EventRoute
    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

    Declaration
    public EventRoute(RoutedEvent routedEvent)
    Parameters
    Type Name Description
    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

    Declaration
    public void Add(object target, RoutedEventHandler handler, bool handledEventsToo)
    Parameters
    Type Name Description
    object target

    Target object whose handler is to be added to the route

    RoutedEventHandler handler

    Handler to be added to the route

    bool handledEventsToo

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

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX