Skip to main content

RoutedEventArgs Class

Namespace: GHIElectronics.TinyCLR.UI · Assembly: GHIElectronics.TinyCLR.UI

The container for all state associated with a RoutedEvent

public class RoutedEventArgs : EventArgs

Constructors

RoutedEventArgs(RoutedEvent routedEvent)

public RoutedEventArgs(RoutedEvent routedEvent) : this(routedEvent, null)

Constructor for RoutedEventArgs

ParameterTypeDescription
routedEventRoutedEventThe new value that the RoutedEvent Property is being set to

RoutedEventArgs(RoutedEvent routedEvent, object source)

public RoutedEventArgs(RoutedEvent routedEvent, object source)

Constructor for RoutedEventArgs

ParameterTypeDescription
routedEventRoutedEventThe new value that the RoutedEvent Property is being set to
sourceobjectThe new value that the SourceProperty is being set to

Properties

Handled

public bool Handled { get; set; }

Returns a boolean flag indicating if or not this RoutedEvent has been handled this far in the route

Source

public object Source { get; set; }

Returns Source object that raised the RoutedEvent

OriginalSource

public object OriginalSource { get; }

Returns OriginalSource object that raised the RoutedEvent

Methods

OnSetSource(object source)

protected virtual void OnSetSource(object source)

Invoked when the source of the event is set

ParameterTypeDescription
sourceobjectThe new value that the SourceProperty is being set to