UIElement.InvalidateArrange UIElement.InvalidateArrange UIElement.InvalidateArrange UIElement.InvalidateArrange Method

定義

使項目的排列狀態 (配置) 失效。Invalidates the arrange state (layout) for the element. 失效之後,項目將更新其配置,而且,除非之後由 UpdateLayout() 強制執行,否則這項作業會以非同步方式發生。After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout().

public:
 void InvalidateArrange();
public void InvalidateArrange ();
member this.InvalidateArrange : unit -> unit
Public Sub InvalidateArrange ()

備註

經常呼叫InvalidateArrange或在特定UpdateLayout有顯著的效能結果。Frequent calls to InvalidateArrange or in particular to UpdateLayout have significant performance consequences. 因此,除非您絕對需要精確的配置狀態的其他後續呼叫,呼叫這個方法來避免APIAPIs程式碼中。Therefore, avoid calling this method unless you absolutely require precise layout state for subsequent calls to other APIAPIs in your code. 進階的案例中,您可能會呼叫InvalidateArrange是如果您要建立PropertyChangedCallback相依性屬性不是在FreezableFrameworkElement衍生類別,可變更時,仍會影響版面配置的排列傳遞。An advanced scenario where you might call InvalidateArrange is if you are creating a PropertyChangedCallback for a dependency property that is not on a Freezable or FrameworkElement derived class that still influences the arrange pass of layout when it changes.

適用於