diff --git a/src/Avalonia.Controls.ItemsRepeater/Layout/StackLayout.cs b/src/Avalonia.Controls.ItemsRepeater/Layout/StackLayout.cs index 5e2b2b8574..5db589fd5b 100644 --- a/src/Avalonia.Controls.ItemsRepeater/Layout/StackLayout.cs +++ b/src/Avalonia.Controls.ItemsRepeater/Layout/StackLayout.cs @@ -26,7 +26,7 @@ namespace Avalonia.Layout /// Defines the property. /// public static readonly StyledProperty OrientationProperty = - StackPanel.OrientationProperty.AddOwner(); + StackPanel.OrientationProperty.AddOwner(); /// /// Defines the property. diff --git a/src/Avalonia.Controls/NativeMenuItem.cs b/src/Avalonia.Controls/NativeMenuItem.cs index 526eff0f12..32fa574ee6 100644 --- a/src/Avalonia.Controls/NativeMenuItem.cs +++ b/src/Avalonia.Controls/NativeMenuItem.cs @@ -137,7 +137,7 @@ namespace Avalonia.Controls /// Defines the property. /// public static readonly StyledProperty CommandParameterProperty = - Button.CommandParameterProperty.AddOwner(); + Button.CommandParameterProperty.AddOwner(); public static readonly DirectProperty IsEnabledProperty = AvaloniaProperty.RegisterDirect(nameof(IsEnabled), o => o.IsEnabled, (o, v) => o.IsEnabled = v, true); diff --git a/src/Avalonia.Controls/Primitives/AdornerLayer.cs b/src/Avalonia.Controls/Primitives/AdornerLayer.cs index 1e07036919..37c46e1e7d 100644 --- a/src/Avalonia.Controls/Primitives/AdornerLayer.cs +++ b/src/Avalonia.Controls/Primitives/AdornerLayer.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Specialized; using Avalonia.Media; using Avalonia.Reactive; -using Avalonia.Rendering; using Avalonia.VisualTree; namespace Avalonia.Controls.Primitives @@ -38,7 +37,7 @@ namespace Avalonia.Controls.Primitives /// Defines the property. /// public static readonly StyledProperty?> DefaultFocusAdornerProperty = - AvaloniaProperty.Register?>(nameof(DefaultFocusAdorner)); + AvaloniaProperty.Register?>(nameof(DefaultFocusAdorner)); private static readonly AttachedProperty s_adornedElementInfoProperty = AvaloniaProperty.RegisterAttached("AdornedElementInfo"); diff --git a/src/Avalonia.Controls/TrayIcon.cs b/src/Avalonia.Controls/TrayIcon.cs index 93b177715e..5713846b35 100644 --- a/src/Avalonia.Controls/TrayIcon.cs +++ b/src/Avalonia.Controls/TrayIcon.cs @@ -95,7 +95,7 @@ namespace Avalonia.Controls /// Defines the property. /// public static readonly StyledProperty CommandParameterProperty = - Button.CommandParameterProperty.AddOwner(); + Button.CommandParameterProperty.AddOwner(); /// /// Defines the attached property.