|
|
|
@ -14,6 +14,7 @@ using Avalonia.Interactivity; |
|
|
|
using Avalonia.Media; |
|
|
|
using Avalonia.Metadata; |
|
|
|
using Avalonia.Data; |
|
|
|
using Avalonia.Layout; |
|
|
|
using Avalonia.Utilities; |
|
|
|
|
|
|
|
namespace Avalonia.Controls |
|
|
|
@ -72,6 +73,18 @@ namespace Avalonia.Controls |
|
|
|
public static readonly StyledProperty<TextAlignment> TextAlignmentProperty = |
|
|
|
TextBlock.TextAlignmentProperty.AddOwner<TextBox>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="HorizontalAlignment"/> property.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly StyledProperty<HorizontalAlignment> HorizontalContentAlignmentProperty = |
|
|
|
ContentControl.HorizontalContentAlignmentProperty.AddOwner<TextBox>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="VerticalAlignment"/> property.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly StyledProperty<VerticalAlignment> VerticalContentAlignmentProperty = |
|
|
|
ContentControl.VerticalContentAlignmentProperty.AddOwner<TextBox>(); |
|
|
|
|
|
|
|
public static readonly StyledProperty<TextWrapping> TextWrappingProperty = |
|
|
|
TextBlock.TextWrappingProperty.AddOwner<TextBox>(); |
|
|
|
|
|
|
|
@ -262,6 +275,24 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the horizontal alignment of the content within the control.
|
|
|
|
/// </summary>
|
|
|
|
public HorizontalAlignment HorizontalContentAlignment |
|
|
|
{ |
|
|
|
get { return GetValue(HorizontalContentAlignmentProperty); } |
|
|
|
set { SetValue(HorizontalContentAlignmentProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the vertical alignment of the content within the control.
|
|
|
|
/// </summary>
|
|
|
|
public VerticalAlignment VerticalContentAlignment |
|
|
|
{ |
|
|
|
get { return GetValue(VerticalContentAlignmentProperty); } |
|
|
|
set { SetValue(VerticalContentAlignmentProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
public TextAlignment TextAlignment |
|
|
|
{ |
|
|
|
get { return GetValue(TextAlignmentProperty); } |
|
|
|
|