Skip to content

Commit

Permalink
chore: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed May 28, 2021
1 parent 1011519 commit 58b8b46
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Uno.UI.RuntimeTests/MUX/Utilities/TestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class App
public static UIElement TestContentRoot
{
get => TestServices.WindowHelper.WindowContent;
set => TestServices.WindowHelper.WindowContent = value;
set => TestServices.WindowHelper.WindowContent = value as UIElement;
}

public static Application Current => Application.Current;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@ internal int CalculateOffsetFromMinDate(DateTime date)
long diffInUTC = 0;
int diffInUnit = 0;

int maxEstimationRetryCount = 3; // the max times that we should estimate
int maxReboundCount = 3; // the max times that we should reduce the step when the estimation is over the boundary.
int minDistanceToEstimate = 3; // the min estimated distance that we should do estimation.

pCalendar.SetDateTime(estimatedDate);
Expand All @@ -363,6 +361,8 @@ internal int CalculateOffsetFromMinDate(DateTime date)
// we could need more times (uncommon scenario)
var averageTicksPerUnit = GetAverageTicksPerUnit();
#if DEBUG
int maxEstimationRetryCount = 3; // the max times that we should estimate
int maxReboundCount = 3; // the max times that we should reduce the step when the estimation is over the boundary.
int estimationCount = 0;
#endif
while (true)
Expand Down
22 changes: 22 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/Border/BorderLayerRenderer.net.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using System.Linq;
using Windows.UI.Xaml.Media;
using Uno.Disposables;
using Uno.Extensions;
using Uno.UI.Xaml;

namespace Windows.UI.Xaml.Shapes
{
internal class BorderLayerRenderer
{
public void UpdateLayer(
UIElement element,
Brush background,
Thickness borderThickness,
Brush borderBrush,
CornerRadius cornerRadius,
object image)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static void SetBackgroundBrush(FrameworkElement element, Brush brush)
break;
case XamlCompositionBrushBase unsupportedCompositionBrush:
var fallbackColor = unsupportedCompositionBrush.FallbackColorWithOpacity;
WindowManagerInterop.SetElementBackgroundColor(HtmlId, fallbackColor);
WindowManagerInterop.SetElementBackgroundColor(element.HtmlId, fallbackColor);
RecalculateBrushOnSizeChanged(element, false);
break;
default:
Expand Down

0 comments on commit 58b8b46

Please sign in to comment.