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). At 次例如版面配置系統決定,這會標幟重新撰寫的配置。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).