Browse Source

Merge pull request #1599 from AvaloniaUI/fixes/1573-popup-offset

Register ToolTip attached properties correctly.
pull/1596/merge
Steven Kirk 8 years ago
committed by GitHub
parent
commit
5e65465ec2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/Avalonia.Controls/ToolTip.cs

8
src/Avalonia.Controls/ToolTip.cs

@ -34,25 +34,25 @@ namespace Avalonia.Controls
/// Defines the ToolTip.Placement property. /// Defines the ToolTip.Placement property.
/// </summary> /// </summary>
public static readonly AttachedProperty<PlacementMode> PlacementProperty = public static readonly AttachedProperty<PlacementMode> PlacementProperty =
AvaloniaProperty.RegisterAttached<Popup, Control, PlacementMode>("Placement", defaultValue: PlacementMode.Pointer); AvaloniaProperty.RegisterAttached<ToolTip, Control, PlacementMode>("Placement", defaultValue: PlacementMode.Pointer);
/// <summary> /// <summary>
/// Defines the ToolTip.HorizontalOffset property. /// Defines the ToolTip.HorizontalOffset property.
/// </summary> /// </summary>
public static readonly AttachedProperty<double> HorizontalOffsetProperty = public static readonly AttachedProperty<double> HorizontalOffsetProperty =
AvaloniaProperty.RegisterAttached<Popup, Control, double>("HorizontalOffset"); AvaloniaProperty.RegisterAttached<ToolTip, Control, double>("HorizontalOffset");
/// <summary> /// <summary>
/// Defines the ToolTip.VerticalOffset property. /// Defines the ToolTip.VerticalOffset property.
/// </summary> /// </summary>
public static readonly AttachedProperty<double> VerticalOffsetProperty = public static readonly AttachedProperty<double> VerticalOffsetProperty =
AvaloniaProperty.RegisterAttached<Popup, Control, double>("VerticalOffset", 20); AvaloniaProperty.RegisterAttached<ToolTip, Control, double>("VerticalOffset", 20);
/// <summary> /// <summary>
/// Defines the ToolTip.ShowDelay property. /// Defines the ToolTip.ShowDelay property.
/// </summary> /// </summary>
public static readonly AttachedProperty<int> ShowDelayProperty = public static readonly AttachedProperty<int> ShowDelayProperty =
AvaloniaProperty.RegisterAttached<Popup, Control, int>("ShowDelay", 400); AvaloniaProperty.RegisterAttached<ToolTip, Control, int>("ShowDelay", 400);
/// <summary> /// <summary>
/// Stores the curernt <see cref="ToolTip"/> instance in the control. /// Stores the curernt <see cref="ToolTip"/> instance in the control.

Loading…
Cancel
Save