EventTriggerBase.OnSourceChanged Method

Called when the source property changes.

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

'Declaration
Protected Overridable Sub OnSourceChanged ( _
    oldSource As T, _
    newSource As T _
)
'Usage
Dim oldSource As T
Dim newSource As T

Me.OnSourceChanged(oldSource, newSource)
protected virtual void OnSourceChanged (
    T oldSource,
    T newSource
)
protected:
virtual void OnSourceChanged (
    T oldSource, 
    T newSource
)
protected void OnSourceChanged (
    T oldSource, 
    T newSource
)
protected function OnSourceChanged (
    oldSource : T, 
    newSource : T
)

Parameters

oldSource

The old source.

newSource

The new source.

Remarks

Override this to hook functionality to and unhook functionality from the specified source, rather than the AssociatedObject.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

EventTriggerBase Generic Class
EventTriggerBase Members
System.Windows.Interactivity Namespace