Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Last merge fixes please
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed May 7, 2021
1 parent c92690e commit 9902e85
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ class SnackBar
return null;
}

internal ValueTask Show(Forms.Page page, SnackBarOptions arguments)
internal ValueTask Show(Forms.VisualElement visualElement, SnackBarOptions arguments)
{
var snackBarLayout = new SnackBarLayout(arguments);
var pageControl = Platform.GetRenderer(page).ContainerElement.Parent;
var grid = (Grid)(FindVisualChildByName<Border>(pageControl, "BottomCommandBarArea")?.Parent ?? throw new NullReferenceException());
var pageControl = Platform.GetRenderer(visualElement).ContainerElement.Parent;
var grid = (Grid)(FindVisualChildByName<Border>(pageControl, "BottomCommandBarArea")?.Parent ?? throw new NotSupportedException("Anchor Not Supported on UWP"));

var snackBarRow = new RowDefinition() { Height = GridLength.Auto };
snackBarTimer = new DispatcherTimer { Interval = arguments.Duration };
snackBarTimer.Tick += (sender, e) =>
Expand Down

0 comments on commit 9902e85

Please sign in to comment.