From 51a376f3e25dff4cddf860ada5243b4d7da8a93c Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 18 May 2018 16:32:53 +0200 Subject: [PATCH] Register ToolTip attached properties correctly. Was previously registering them with `Popup` as the owner, which was causing two properties with the same name to get registered, confusing XAML. We should probably put in a check to make sure this doesn't happen, but this fixes the problem for now. Fixes #1573 --- src/Avalonia.Controls/ToolTip.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Controls/ToolTip.cs b/src/Avalonia.Controls/ToolTip.cs index e45f30f818..464e4188d2 100644 --- a/src/Avalonia.Controls/ToolTip.cs +++ b/src/Avalonia.Controls/ToolTip.cs @@ -34,25 +34,25 @@ namespace Avalonia.Controls /// Defines the ToolTip.Placement property. /// public static readonly AttachedProperty PlacementProperty = - AvaloniaProperty.RegisterAttached("Placement", defaultValue: PlacementMode.Pointer); + AvaloniaProperty.RegisterAttached("Placement", defaultValue: PlacementMode.Pointer); /// /// Defines the ToolTip.HorizontalOffset property. /// public static readonly AttachedProperty HorizontalOffsetProperty = - AvaloniaProperty.RegisterAttached("HorizontalOffset"); + AvaloniaProperty.RegisterAttached("HorizontalOffset"); /// /// Defines the ToolTip.VerticalOffset property. /// public static readonly AttachedProperty VerticalOffsetProperty = - AvaloniaProperty.RegisterAttached("VerticalOffset", 20); + AvaloniaProperty.RegisterAttached("VerticalOffset", 20); /// /// Defines the ToolTip.ShowDelay property. /// public static readonly AttachedProperty ShowDelayProperty = - AvaloniaProperty.RegisterAttached("ShowDelay", 400); + AvaloniaProperty.RegisterAttached("ShowDelay", 400); /// /// Stores the curernt instance in the control.