Leadtools.Windows.Controls Namespace > MagnifyGlass Class : OnCrosshairChanged Method |
protected virtual void OnCrosshairChanged( RoutedPropertyChangedEventArgs<MagnifyGlassCrosshair> e )
'Declaration Protected Overridable Sub OnCrosshairChanged( _ ByVal e As RoutedPropertyChangedEventArgs(Of MagnifyGlassCrosshair) _ )
'Usage Dim instance As MagnifyGlass Dim e As RoutedPropertyChangedEventArgs(Of MagnifyGlassCrosshair) instance.OnCrosshairChanged(e)
protected: virtual void OnCrosshairChanged( RoutedPropertyChangedEventArgs<MagnifyGlassCrosshair>^ e )
Raising an event invokes the event handler through a delegate.
The OnCrosshairChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors: When overriding OnCrosshairChanged in a derived class, be sure to call the base class's OnCrosshairChanged method so that registered delegates receive the event.