Share via


OnSetSource Method

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

Provides a notification callback entry point whenever the value of the Source property of an object changes.

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

Syntax

'Declaration
Protected Overridable Sub OnSetSource ( _
    source As Object _
)
protected virtual void OnSetSource(
    Object source
)
protected:
virtual void OnSetSource(
    Object^ source
)
abstract OnSetSource : 
        source:Object -> unit 
override OnSetSource : 
        source:Object -> unit 
protected function OnSetSource(
    source : Object
)

Parameters

  • source
    Type: System. . :: . .Object
    Contains the object whose Source property triggers the invocation of this method.

Remarks

The OnSetSource method is protected virtual and is intended to be overridden by subclasses of the RoutedEventArgs class. Note that OnSetSource has no default implementation.

Note

Changing the reported source of an event programmatically can potentially require updating the type-specific data within the event.

.NET Framework Security

See Also

Reference

RoutedEventArgs Class

Microsoft.SPOT Namespace