VirtualizingPanel.ShouldItemsChangeAffectLayout 方法

定义

返回一个值,该值指示更改的 ItemsControl 项是否影响此面板的布局。

public:
 bool ShouldItemsChangeAffectLayout(bool areItemChangesLocal, System::Windows::Controls::Primitives::ItemsChangedEventArgs ^ args);
public bool ShouldItemsChangeAffectLayout(bool areItemChangesLocal, System.Windows.Controls.Primitives.ItemsChangedEventArgs args);
member this.ShouldItemsChangeAffectLayout : bool * System.Windows.Controls.Primitives.ItemsChangedEventArgs -> bool
Public Function ShouldItemsChangeAffectLayout (areItemChangesLocal As Boolean, args As ItemsChangedEventArgs) As Boolean

参数

areItemChangesLocal
Boolean

true 如果更改的项是此 VirtualizingPanel项的直接子级, false 则为更改项 VirtualizingPanel的间接后代。

args
ItemsChangedEventArgs

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

返回

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

适用于