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

如果變更的項目是此 VirtualizingPanel 的直接子系,則為 true,如果變更的項目是 VirtualizingPanel 的間接子代,則為 false

args
ItemsChangedEventArgs

包含有關已變更之項目的資料。

傳回

如果 ItemsControl 中變更的項目會影響此面格的配置,則為 true,否則為 false

適用於