|
|
@ -126,6 +126,12 @@ namespace Avalonia.Controls |
|
|
public static readonly StyledProperty<VerticalAlignment> VerticalContentAlignmentProperty = |
|
|
public static readonly StyledProperty<VerticalAlignment> VerticalContentAlignmentProperty = |
|
|
ContentControl.VerticalContentAlignmentProperty.AddOwner<NumericUpDown>(); |
|
|
ContentControl.VerticalContentAlignmentProperty.AddOwner<NumericUpDown>(); |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Defines the <see cref="TextAlignment"/> property
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static readonly StyledProperty<Media.TextAlignment> TextAlignmentProperty = |
|
|
|
|
|
TextBox.TextAlignmentProperty.AddOwner<NumericUpDown>(); |
|
|
|
|
|
|
|
|
private IDisposable? _textBoxTextChangedSubscription; |
|
|
private IDisposable? _textBoxTextChangedSubscription; |
|
|
|
|
|
|
|
|
private bool _internalValueSet; |
|
|
private bool _internalValueSet; |
|
|
@ -299,6 +305,15 @@ namespace Avalonia.Controls |
|
|
set => SetValue(VerticalContentAlignmentProperty, value); |
|
|
set => SetValue(VerticalContentAlignmentProperty, value); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the <see cref="Media.TextAlignment"/> of the <see cref="NumericUpDown"/>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Media.TextAlignment TextAlignment |
|
|
|
|
|
{ |
|
|
|
|
|
get => GetValue(TextAlignmentProperty); |
|
|
|
|
|
set => SetValue(TextAlignmentProperty, value); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Initializes new instance of <see cref="NumericUpDown"/> class.
|
|
|
/// Initializes new instance of <see cref="NumericUpDown"/> class.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|