Export (0) Print
Expand All

Label.Refresh Method

Silverlight

Reloads the metadata from the Target element.

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

public virtual void Refresh()

This method reloads the metadata from the Target of the Label. 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: Content, IsRequired, 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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2014 Microsoft