Skip to content

Commit

Permalink
Remove unneeded PART_FirstSpace annotation from TimePickerPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualMelon committed Oct 13, 2024
1 parent 5a4b058 commit 144a90d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace Avalonia.Controls
[TemplatePart("PART_PeriodSelector", typeof(DateTimePickerPanel), IsRequired = true)]
[TemplatePart("PART_PeriodUpButton", typeof(RepeatButton))]
[TemplatePart("PART_PickerContainer", typeof(Grid), IsRequired = true)]
[TemplatePart("PART_FirstSpacer", typeof(Rectangle), IsRequired = true)]
[TemplatePart("PART_SecondSpacer", typeof(Rectangle), IsRequired = true)]
[TemplatePart("PART_ThirdSpacer", typeof(Rectangle), IsRequired = true)]
public class TimePickerPresenter : PickerPresenterBase
Expand Down
7 changes: 1 addition & 6 deletions tests/Avalonia.Controls.UnitTests/TimePickerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,6 @@ private static IControlTemplate CreatePickerTemplate()
Name = "PART_PickerContainer"
}.RegisterInNameScope(scope);

var firstSpacer = new Rectangle
{
Name = "PART_FirstSpacer"
}.RegisterInNameScope(scope);

var secondSpacer = new Rectangle
{
Name = "PART_SecondSpacer"
Expand All @@ -449,7 +444,7 @@ private static IControlTemplate CreatePickerTemplate()
}.RegisterInNameScope(scope);

var contentPanel = new StackPanel();
contentPanel.Children.AddRange(new Control[] { acceptButton, hourSelector, minuteSelector, secondHost, secondSelector, periodHost, periodSelector, pickerContainer, firstSpacer, secondSpacer, thirdSpacer });
contentPanel.Children.AddRange(new Control[] { acceptButton, hourSelector, minuteSelector, secondHost, secondSelector, periodHost, periodSelector, pickerContainer, secondSpacer, thirdSpacer });
return contentPanel;
});
}
Expand Down

0 comments on commit 144a90d

Please sign in to comment.