Поделиться через


PagedCollectionView.Refresh Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Re-creates the view.

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

Syntax

'Declaration
Public Sub Refresh
public void Refresh()

Implements

ICollectionView.Refresh()

Exceptions

Exception Condition
InvalidOperationException

IsAddingNew is true.

-or- IsEditingItem is true.

Remarks

Any Filter, SortDescriptions, and GroupDescriptions property values will be applied when the view is refreshed.

You do not have to explicitly call Refresh on the view after you set the Filter, SortDescriptions, or GroupDescriptions property; refresh is performed automatically. For information about how to delay automatic refresh, see DeferRefresh.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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