private void RaiseInitializeContentPane(ContentPane pane) { if (null == _target) { return; } var args = new InitializeContentPaneEventArgs(pane) { RoutedEvent = InitializeContentPaneEvent }; UiElementHelper.RaiseEvent(_target, args); }
/// <summary> /// Removes a handler for the InitializeContentPane attached event /// </summary> /// <param name="element">UIElement or ContentElement that listens to the event</param> /// <param name="handler">Event handler to be removed</param> public static void RemoveInitializeContentPaneHandler(DependencyObject element, EventHandler <InitializeContentPaneEventArgs> handler) { UiElementHelper.RemoveHandler(element, InitializeContentPaneEvent, handler); }