Skip to content

Commit

Permalink
fix: Alignment regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ebariche committed Sep 21, 2021
1 parent fc06bd4 commit 9ee447d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/UI/Xaml/Controls/Control/Control.FocusMixins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public partial class Control
set => base.FocusState = value;
}

public static new DependencyProperty FocusStateProperty = UIElement.FocusStateProperty;
public static new DependencyProperty FocusStateProperty => UIElement.FocusStateProperty;

public new bool IsTabStop
{
get => base.IsTabStop;
set => base.IsTabStop = value;
}

public static new DependencyProperty IsTabStopProperty = UIElement.IsTabStopProperty;
public static new DependencyProperty IsTabStopProperty => UIElement.IsTabStopProperty;

public new int TabIndex
{
Expand Down
11 changes: 11 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/Primitives/PlacementMode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Windows.UI.Xaml.Controls.Primitives
{
public enum PlacementMode
{
Bottom = 2,
Left = 9,
Mouse = 7,
Right = 4,
Top = 10
}
}
4 changes: 2 additions & 2 deletions src/Uno.UI/UI/Xaml/Controls/ToolTip/ToolTipService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ partial class ToolTipService
typeof(ToolTipService),
new FrameworkPropertyMetadata(PlacementMode.Top, OnPlacementChanged));

public static PlacementMode GetPlacement(FrameworkElement obj) => (PlacementMode)obj.GetValue(PlacementProperty);
public static void SetPlacement(FrameworkElement obj, PlacementMode value) => obj.SetValue(PlacementProperty, value);
public static PlacementMode GetPlacement(DependencyObject obj) => (PlacementMode)obj.GetValue(PlacementProperty);
public static void SetPlacement(DependencyObject obj, PlacementMode value) => obj.SetValue(PlacementProperty, value);

#endregion
#region DependencyProperty: ToolTipReference
Expand Down

0 comments on commit 9ee447d

Please sign in to comment.