Cette documentation est archivée et n’est pas conservée.

Localization.AttributesProperty, champ

Identifies the Attributes attached property.

Espace de noms: System.Windows
Assembly : PresentationFramework (dans presentationframework.dll)

public static readonly DependencyProperty AttributesProperty
public static final DependencyProperty AttributesProperty
public static final var AttributesProperty : DependencyProperty
Vous ne pouvez pas utiliser des champs dans XAML.

Valeur de champ

The Attributes attached property identifier.

The following code example shows how to get and set the Attributes attached property for a button.

// Get the value of the Localization.AttributesProperty dependency property.
string attributes = (string)buttonLocalized.GetValue(Localization.AttributesProperty);

// Set the value of the Localization.AttributesProperty dependency property.
string newAttributes = "$Content(Button Unreadable Unmodifiable) FontFamily(Font Unreadable Unmodifiable)";
buttonLocalized.SetValue(Localization.AttributesProperty, newAttributes);

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0
Afficher: