diff --git a/src/Avalonia.Controls/DateTimePickers/DatePicker.cs b/src/Avalonia.Controls/DateTimePickers/DatePicker.cs index db59dbdb4a..fb27feb521 100644 --- a/src/Avalonia.Controls/DateTimePickers/DatePicker.cs +++ b/src/Avalonia.Controls/DateTimePickers/DatePicker.cs @@ -15,14 +15,14 @@ namespace Avalonia.Controls /// A control to allow the user to select a date /// [TemplatePart("PART_ButtonContentGrid", typeof(Grid))] - [TemplatePart("PART_DayText", typeof(TextBlock))] + [TemplatePart("PART_DayTextBlock", typeof(TextBlock))] [TemplatePart("PART_FirstSpacer", typeof(Rectangle))] [TemplatePart("PART_FlyoutButton", typeof(Button))] - [TemplatePart("PART_MonthText", typeof(TextBlock))] + [TemplatePart("PART_MonthTextBlock", typeof(TextBlock))] [TemplatePart("PART_PickerPresenter", typeof(DatePickerPresenter))] [TemplatePart("PART_Popup", typeof(Popup))] [TemplatePart("PART_SecondSpacer", typeof(Rectangle))] - [TemplatePart("PART_YearText", typeof(TextBlock))] + [TemplatePart("PART_YearTextBlock", typeof(TextBlock))] [PseudoClasses(":hasnodate")] public class DatePicker : TemplatedControl { @@ -281,9 +281,9 @@ namespace Avalonia.Controls base.OnApplyTemplate(e); _flyoutButton = e.NameScope.Find