EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Control.HorizontalContentAlignment Property

May 02, 2013

Gets or sets the horizontal alignment of the control's content.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
public HorizontalAlignment HorizontalContentAlignment { get; set; }
<control HorizontalContentAlignment="horizontalAlignmentValue"/>

XAML Values

horizontalAlignmentValue

A named constant of the HorizontalAlignment enumeration, such as Stretch.

Property Value

Type: System.Windows.HorizontalAlignment
One of the HorizontalAlignment values. The default is HorizontalAlignment.Center.

Dependency property identifier field: HorizontalContentAlignmentProperty

This property only affects a control whose template uses the HorizontalContentAlignment property as a parameter. On other controls, this property has no impact.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Cela vous a-t-il été utile ?
(1500 caractères restants)
© 2013 Microsoft. Tous droits réservés.