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 } }
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); } }
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 } }
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 } }