UIElement.IsArrangeValid 屬性


取得值,這個值表示在此項目之配置中子項目的計算大小和位置是有效的。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 除非在 true 配置 IsMeasureValid 程式中也 (,否則不能是 true ,除非先將) 的度量視為有效,否則相片順序不能是有效的。IsArrangeValid cannot be true unless IsMeasureValid is also true (in the layout process, arrangement cannot be valid without measurement first being valid).