Leadtools.Windows.Annotations Namespace > AnnToolBar Class : OnOrientationChanged Method |
protected virtual void OnOrientationChanged( RoutedPropertyChangedEventArgs<Orientation> e )
'Declaration Protected Overridable Sub OnOrientationChanged( _ ByVal e As RoutedPropertyChangedEventArgs(Of Orientation) _ )
'Usage Dim instance As AnnToolBar Dim e As RoutedPropertyChangedEventArgs(Of Orientation) instance.OnOrientationChanged(e)
protected: virtual void OnOrientationChanged( RoutedPropertyChangedEventArgs<Orientation>^ e )
Raising an event invokes the event handler through a delegate.
The OnOrientationChanged 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 OnOrientationChanged in a derived class, be sure to call the base class's OnOrientationChanged method so that registered delegates receive the event.