VirtualizingStackPanel.ShouldItemsChangeAffectLayoutCore 方法

定义

返回一个值,该值指示更改的 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的间接后代。

args
ItemsChangedEventArgs

包含有关已更改项的数据。

返回

如果更改的 项会影响此面板的布局,则为 。

适用于