Share via


RoutedEventArgs Constructor (RoutedEvent, Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the RoutedEventArgs class, using the routed event identifier that is provided. Note that using this constructor also gives you the opportunity to declare a different source for the event.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Sub New ( _
    routedEvent As RoutedEvent, _
    source As Object _
)
public RoutedEventArgs(
    RoutedEvent routedEvent,
    Object source
)
public:
RoutedEventArgs(
    RoutedEvent^ routedEvent, 
    Object^ source
)
new : 
        routedEvent:RoutedEvent * 
        source:Object -> RoutedEventArgs
public function RoutedEventArgs(
    routedEvent : RoutedEvent, 
    source : Object
)

Parameters

  • source
    Type: System. . :: . .Object
    An alternate source that will be reported when the routed event is handled.

Remarks

When you use this constructor, the unspecified properties of the new RoutedEventArgs object assume the following default values:

  • Handled defaults to false.

  • OriginalSource defaults to null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

.NET Framework Security

See Also

Reference

RoutedEventArgs Class

RoutedEventArgs Overload

Microsoft.SPOT Namespace