Browse Source
Merge pull request #10369 from MarchingCube/fix-dev-tools
Fix alignment helper not working and missing icon for clear button.
pull/10380/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
src/Avalonia.Diagnostics/Diagnostics/Controls/FilterTextBox.axaml
-
src/Avalonia.Diagnostics/Diagnostics/ViewModels/ControlLayoutViewModel.cs
|
|
|
@ -16,6 +16,8 @@ |
|
|
|
<StackPanel Orientation="Horizontal" Spacing="1"> |
|
|
|
<Button Margin="0,0,2,0" |
|
|
|
Classes="textBoxClearButton" |
|
|
|
Theme="{StaticResource SimpleTextBoxClearButtonTheme}" |
|
|
|
Focusable="False" |
|
|
|
ToolTip.Tip="Clear" |
|
|
|
Cursor="Hand" |
|
|
|
Command="{Binding $parent[TextBox].Clear}" |
|
|
|
|
|
|
|
@ -103,13 +103,13 @@ namespace Avalonia.Diagnostics.ViewModels |
|
|
|
public HorizontalAlignment HorizontalAlignment |
|
|
|
{ |
|
|
|
get => _horizontalAlignment; |
|
|
|
private set => RaiseAndSetIfChanged(ref _horizontalAlignment, value); |
|
|
|
set => RaiseAndSetIfChanged(ref _horizontalAlignment, value); |
|
|
|
} |
|
|
|
|
|
|
|
public VerticalAlignment VerticalAlignment |
|
|
|
{ |
|
|
|
get => _verticalAlignment; |
|
|
|
private set => RaiseAndSetIfChanged(ref _verticalAlignment, value); |
|
|
|
set => RaiseAndSetIfChanged(ref _verticalAlignment, value); |
|
|
|
} |
|
|
|
|
|
|
|
public bool HasPadding { get; } |
|
|
|
|