// Token: 0x06000308 RID: 776 RVA: 0x000086A8 File Offset: 0x000068A8
        internal static object BroadcastLoadedEvent(object root)
        {
            DependencyObject dependencyObject = (DependencyObject)root;

            object[] loadedPending = (object[])dependencyObject.GetValue(FrameworkElement.LoadedPendingProperty);
            bool     isLoaded      = BroadcastEventHelper.IsLoadedHelper(dependencyObject);

            BroadcastEventHelper.RemoveLoadedCallback(dependencyObject, loadedPending);
            BroadcastEventHelper.BroadcastLoadedSynchronously(dependencyObject, isLoaded);
            return(null);
        }
예제 #2
0
        // handle the Loaded event from the mentor
        void OnMentorLoaded(object sender, RoutedEventArgs e)
        {
            FrameworkObject foMentor = new FrameworkObject((DependencyObject)sender);

            // stop listening for Loaded, start listening for Unloaded
            foMentor.Loaded   -= new RoutedEventHandler(OnMentorLoaded);
            foMentor.Unloaded += new RoutedEventHandler(OnMentorUnloaded);

            // broadcast the Loaded event to my framework subtree
            //FireLoadedOnDescendentsInternal();
            BroadcastEventHelper.BroadcastLoadedSynchronously(this, IsLoaded);
        }