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


DescriptionViewer.Refresh Method

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

Reloads the metadata from the Target element.

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

Syntax

'Declaration
Public Overridable Sub Refresh
public virtual void Refresh()

Remarks

This method reloads the metadata from the Target of the DescriptionViewer. It is called automatically when the Target property is set or changed. It is also called if the DataContext of the Target control changes from one type to another type.

When Refresh is called, the following properties are reset to the values in the metadata: Description and IsValid. Because Refresh reloads values from metadata, property values that you have set in XAML or in code might change if the values in metadata differ from those you set.

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.