Localization.SetAttributes Method (Object, String)

 

Sets the AttributesProperty attached property for the specified element.

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

public static void SetAttributes(
	object element,
	string attributes
)

Parameters

element
Type: System.Object

A Object that represents the element whose attached property you want to set.

attributes
Type: System.String

A String that specifies the localization attributes.

Localization attributes specify which resources are to be localized. For more information on how to define localization attributes, see Localization Attributes and Comments.

The following code example shows how to set the localization attributes for a button.

.NET Framework
Available since 3.0
Return to top
Show: