Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CollectionViewSource.DeferRefresh Method

Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)

public IDisposable DeferRefresh()

Return Value

Type: System.IDisposable
An IDisposable object that you can use to dispose of the calling object.

Call this method before making multiple changes to the ICollectionView properties of the View property value. These changes will not be validated until Dispose is called on the DeferRefresh return value. Dispose will throw an InvalidOperationException If the View has inconsistent sorting, filtering, and grouping settings. For more information, see ISupportInitialize.EndInit.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft