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

Commit

Permalink
Fix Toast CornerRadius (#1498)
Browse files Browse the repository at this point in the history
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
  • Loading branch information
VladislavAntonyuk and jfversluis committed Jul 13, 2021
1 parent 72d40db commit 9f4a308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/XCT.Sample/Pages/Views/SnackBarPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ async void DisplayToastAnchoredClicked(object? sender, EventArgs args)
{
MessageOptions = messageOptions,
Duration = TimeSpan.FromMilliseconds(5000),
CornerRadius = new Thickness(10, 20, 30, 40),
BackgroundColor = Color.LightBlue
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public static async Task DisplayToastAsync(this VisualElement visualElement, Toa
var options = new SnackBarOptions
{
MessageOptions = toastOptions.MessageOptions,
CornerRadius = toastOptions.CornerRadius,
Duration = toastOptions.Duration,
BackgroundColor = toastOptions.BackgroundColor,
IsRtl = toastOptions.IsRtl
Expand Down

0 comments on commit 9f4a308

Please sign in to comment.