VirtualizingStackPanel.ShouldItemsChangeAffectLayoutCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示 中 ItemsControl 項目的變更是否會影響該面板的版面配置。
protected:
override bool ShouldItemsChangeAffectLayoutCore(bool areItemChangesLocal, System::Windows::Controls::Primitives::ItemsChangedEventArgs ^ args);
protected override bool ShouldItemsChangeAffectLayoutCore(bool areItemChangesLocal, System.Windows.Controls.Primitives.ItemsChangedEventArgs args);
override this.ShouldItemsChangeAffectLayoutCore : bool * System.Windows.Controls.Primitives.ItemsChangedEventArgs -> bool
Protected Overrides Function ShouldItemsChangeAffectLayoutCore (areItemChangesLocal As Boolean, args As ItemsChangedEventArgs) As Boolean
參數
- areItemChangesLocal
- Boolean
true 若變更項目是此項目 VirtualizingPanel的直接子項目; false 若變更項目是該項目的間接後代 VirtualizingPanel。
包含變更物品的資料。
傳回
true 若 中 ItemsControl 項目變更影響該面板的版面;否則, false。