Esempio n. 1
0
        public static void ClearLayoutQueue()
        {
            int count = s_layoutQueue.Count;

#if DEBUG
            //if (UIElement.s_dbugBreakOnSetBounds)
            //{
            //    for (int i = count - 1; i >= 0; --i)
            //    {
            //        UIElement ui = s_layoutQueue.Dequeue();
            //        ui.IsInLayoutQueue = false;
            //        if (ui.IsInLayoutQueue)
            //        {
            //            //should not occur
            //            throw new System.NotSupportedException();
            //        }
            //    }
            //    return;
            //}
#endif
            for (int i = count - 1; i >= 0; --i)
            {
                UIElement ui = s_layoutQueue.Dequeue();
                ui.IsInLayoutQueue = false;
                UIElement.InvokeContentLayout(ui);

#if DEBUG
                if (ui.IsInLayoutQueue)
                {
                    //should not occur
                    throw new System.NotSupportedException();
                }
#endif
            }
        }
Esempio n. 2
0
        public static void ClearLayoutQueue()
        {
            int count = s_layoutQueue.Count;

            for (int i = count - 1; i >= 0; --i)
            {
                UIElement ui = s_layoutQueue.Dequeue();
                ui.IsInLayoutQueue = false;
                UIElement.InvokeContentLayout(ui);
            }
        }
Esempio n. 3
0
        public static void ClearLayoutQueue()
        {
            int count = s_layoutQueue.Count;

            for (int i = count - 1; i >= 0; --i)
            {
                UIElement ui = s_layoutQueue.Dequeue();
                ui.IsInLayoutQueue = false;
                UIElement.InvokeContentLayout(ui);

#if DEBUG
                if (ui.IsInLayoutQueue)
                {
                    //should not occur
                    throw new System.NotSupportedException();
                }
#endif
            }
        }
Esempio n. 4
0
        public static void ClearLayoutQueue()
        {
            int count = s_layoutQueue.Count;

#if DEBUG
            //if (UIElement.s_dbugBreakOnSetBounds)
            //{
            //    for (int i = count - 1; i >= 0; --i)
            //    {
            //        UIElement ui = s_layoutQueue.Dequeue();
            //        ui.IsInLayoutQueue = false;
            //        if (ui.IsInLayoutQueue)
            //        {
            //            //should not occur
            //            throw new System.NotSupportedException();
            //        }
            //    }
            //    return;
            //}

            if (count > 0)
            {
                //System.Diagnostics.Debug.WriteLine("layout_queue:" + count);
            }
#endif

            LayoutUpdateArgs layoutArgs = null;

            for (int i = count - 1; i >= 0; --i)
            {
                UIElement ui = s_layoutQueue.Dequeue();
                ui.IsInLayoutQueue = false;
                UIElement.InvokeContentLayout(ui, layoutArgs);
#if DEBUG
                if (ui.IsInLayoutQueue)
                {
                    //should not occur
                    throw new System.NotSupportedException();
                }
#endif
            }
        }