diff --git a/src/Avalonia.Controls.DataGrid/DataGridRowGroupHeader.cs b/src/Avalonia.Controls.DataGrid/DataGridRowGroupHeader.cs
index d63c738133..69e6766bfd 100644
--- a/src/Avalonia.Controls.DataGrid/DataGridRowGroupHeader.cs
+++ b/src/Avalonia.Controls.DataGrid/DataGridRowGroupHeader.cs
@@ -23,10 +23,10 @@ namespace Avalonia.Controls
[PseudoClasses(":pressed", ":current", ":expanded")]
public class DataGridRowGroupHeader : TemplatedControl
{
- private const string DATAGRIDROWGROUPHEADER_expanderButton = "ExpanderButton";
- private const string DATAGRIDROWGROUPHEADER_indentSpacer = "IndentSpacer";
- private const string DATAGRIDROWGROUPHEADER_itemCountElement = "ItemCountElement";
- private const string DATAGRIDROWGROUPHEADER_propertyNameElement = "PropertyNameElement";
+ private const string DATAGRIDROWGROUPHEADER_expanderButton = "PART_ExpanderButton";
+ private const string DATAGRIDROWGROUPHEADER_indentSpacer = "PART_IndentSpacer";
+ private const string DATAGRIDROWGROUPHEADER_itemCountElement = "PART_ItemCountElement";
+ private const string DATAGRIDROWGROUPHEADER_propertyNameElement = "PART_PropertyNameElement";
private bool _areIsCheckedHandlersSuspended;
private ToggleButton _expanderButton;
diff --git a/src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml b/src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml
index 364a2a52e3..b4bae02b9b 100644
--- a/src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml
+++ b/src/Avalonia.Controls.DataGrid/Themes/Fluent.xaml
@@ -409,9 +409,9 @@
ColumnDefinitions="Auto,Auto,Auto,Auto,*"
RowDefinitions="*,Auto">
-
-
-
-
diff --git a/src/Avalonia.Controls.DataGrid/Themes/Simple.xaml b/src/Avalonia.Controls.DataGrid/Themes/Simple.xaml
index 6a748f399e..b43addff86 100644
--- a/src/Avalonia.Controls.DataGrid/Themes/Simple.xaml
+++ b/src/Avalonia.Controls.DataGrid/Themes/Simple.xaml
@@ -258,10 +258,10 @@
ColumnDefinitions="Auto,Auto,Auto,Auto"
RowDefinitions="Auto,*,Auto">
-
-
-
-
diff --git a/src/Avalonia.Controls/Calendar/Calendar.cs b/src/Avalonia.Controls/Calendar/Calendar.cs
index bb838a4f3f..0de068a416 100644
--- a/src/Avalonia.Controls/Calendar/Calendar.cs
+++ b/src/Avalonia.Controls/Calendar/Calendar.cs
@@ -2109,8 +2109,8 @@ namespace Avalonia.Controls
RemovedItems = new Collection();
}
- private const string PART_ElementRoot = "Root";
- private const string PART_ElementMonth = "CalendarItem";
+ private const string PART_ElementRoot = "PART_Root";
+ private const string PART_ElementMonth = "PART_CalendarItem";
///
/// Builds the visual tree for the
diff --git a/src/Avalonia.Controls/Calendar/CalendarItem.cs b/src/Avalonia.Controls/Calendar/CalendarItem.cs
index 75e9f52621..e2eabb5f28 100644
--- a/src/Avalonia.Controls/Calendar/CalendarItem.cs
+++ b/src/Avalonia.Controls/Calendar/CalendarItem.cs
@@ -32,11 +32,11 @@ namespace Avalonia.Controls.Primitives
///
private const int NumberOfDaysPerWeek = 7;
- private const string PART_ElementHeaderButton = "HeaderButton";
- private const string PART_ElementPreviousButton = "PreviousButton";
- private const string PART_ElementNextButton = "NextButton";
- private const string PART_ElementMonthView = "MonthView";
- private const string PART_ElementYearView = "YearView";
+ private const string PART_ElementHeaderButton = "PART_HeaderButton";
+ private const string PART_ElementPreviousButton = "PART_PreviousButton";
+ private const string PART_ElementNextButton = "PART_NextButton";
+ private const string PART_ElementMonthView = "PART_MonthView";
+ private const string PART_ElementYearView = "PART_YearView";
private Button? _headerButton;
private Button? _nextButton;
diff --git a/src/Avalonia.Controls/DateTimePickers/DatePicker.cs b/src/Avalonia.Controls/DateTimePickers/DatePicker.cs
index f2b808fe0d..fb27feb521 100644
--- a/src/Avalonia.Controls/DateTimePickers/DatePicker.cs
+++ b/src/Avalonia.Controls/DateTimePickers/DatePicker.cs
@@ -14,15 +14,15 @@ namespace Avalonia.Controls
///
/// A control to allow the user to select a date
///
- [TemplatePart("ButtonContentGrid", typeof(Grid))]
- [TemplatePart("DayText", typeof(TextBlock))]
- [TemplatePart("FirstSpacer", typeof(Rectangle))]
- [TemplatePart("FlyoutButton", typeof(Button))]
- [TemplatePart("MonthText", typeof(TextBlock))]
- [TemplatePart("PickerPresenter", typeof(DatePickerPresenter))]
- [TemplatePart("Popup", typeof(Popup))]
- [TemplatePart("SecondSpacer", typeof(Rectangle))]
- [TemplatePart("YearText", typeof(TextBlock))]
+ [TemplatePart("PART_ButtonContentGrid", typeof(Grid))]
+ [TemplatePart("PART_DayTextBlock", typeof(TextBlock))]
+ [TemplatePart("PART_FirstSpacer", typeof(Rectangle))]
+ [TemplatePart("PART_FlyoutButton", typeof(Button))]
+ [TemplatePart("PART_MonthTextBlock", typeof(TextBlock))]
+ [TemplatePart("PART_PickerPresenter", typeof(DatePickerPresenter))]
+ [TemplatePart("PART_Popup", typeof(Popup))]
+ [TemplatePart("PART_SecondSpacer", typeof(Rectangle))]
+ [TemplatePart("PART_YearTextBlock", typeof(TextBlock))]
[PseudoClasses(":hasnodate")]
public class DatePicker : TemplatedControl
{
@@ -280,15 +280,15 @@ namespace Avalonia.Controls
}
base.OnApplyTemplate(e);
- _flyoutButton = e.NameScope.Find
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+
@@ -214,50 +214,50 @@
CornerRadius="{TemplateBinding CornerRadius}">
-
+
-
-
-
-
-
-
-
-
-
-
-
-
@@ -272,12 +272,12 @@
Color="{DynamicResource ThemeAccentColor}" />
-
-
-
-
-