Static class for dealing with UIElement related members.
コード例 #1
0
        private void RaiseInitializeContentPane(ContentPane pane)
        {
            if (null == _target)
            {
                return;
            }

            var args = new InitializeContentPaneEventArgs(pane)
            {
                RoutedEvent = InitializeContentPaneEvent
            };

            UiElementHelper.RaiseEvent(_target, args);
        }
コード例 #2
0
 /// <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);
 }