You can raise any event on any UIElementusing the method RaiseEvent(). Just create the appropriate event arguments for the handler and go to RaiseEvent().
var args = new DataObjectPastingEventArgs(dataObject, isDragDrop, formatToApply)
{
Source = this,
RoutedEvent = DataObject.PastingEvent
};
element.RaiseEvent(args);
source
share