Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
Leadtools.Windows.Controls Namespace > MagnifyGlass Class : OnSizeChanged Method |
protected virtual void OnSizeChanged( RoutedPropertyChangedEventArgs<Size> e )
'Declaration Protected Overridable Sub OnSizeChanged( _ ByVal e As RoutedPropertyChangedEventArgs(Of Size) _ )
'Usage Dim instance As MagnifyGlass Dim e As RoutedPropertyChangedEventArgs(Of Size) instance.OnSizeChanged(e)
protected: virtual void OnSizeChanged( RoutedPropertyChangedEventArgs<Size>^ e )
Raising an event invokes the event handler through a delegate.
The OnSizeChanged 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 OnSizeChanged in a derived class, be sure to call the base class's OnSizeChanged method so that registered delegates receive the event.