UIElement.IsArrangeValid UIElement.IsArrangeValid UIElement.IsArrangeValid UIElement.IsArrangeValid Property


取得值,這個值表示在此項目之配置中子項目的計算大小和位置是有效的。Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.

 property bool IsArrangeValid { bool get(); };
public bool IsArrangeValid { get; }
member this.IsArrangeValid : bool
Public ReadOnly Property IsArrangeValid As Boolean


如果配置的大小和位置有效則為 true,否則為 falsetrue if the size and position of layout are valid; otherwise, false.


您可以在這個專案 (或其父InvalidateArrange代) 上呼叫, 以強制將排列失效。You can force arrangement to be invalidated by calling InvalidateArrange on this element (or its parents). 這會在配置系統決定時, 將重新組合的版面配置標記為。This flags the layout for recomposition at such time as the layout system determines. 或者, UpdateLayout可以立即呼叫, 但只有在確定沒有任何進一步的失效 (不必要的強制更新有效能後果) 時, 才應該這麼做。Alternatively, an immediate call to UpdateLayout could be made, but this should only be done if it is certain that no further invalidations are pending (a large number of unnecessarily forced updates has performance consequences).

IsArrangeValid不能trueIsMeasureValid , 除非true也是 (在版面配置程式中, 如果沒有度量第一次有效, 就無法有效排列)。IsArrangeValid cannot be true unless IsMeasureValid is also true (in the layout process, arrangement cannot be valid without measurement first being valid).