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

Commit 9f4a308

Browse files
Fix Toast CornerRadius (#1498)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
1 parent 72d40db commit 9f4a308

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

samples/XCT.Sample/Pages/Views/SnackBarPage.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ async void DisplayToastAnchoredClicked(object? sender, EventArgs args)
5959
{
6060
MessageOptions = messageOptions,
6161
Duration = TimeSpan.FromMilliseconds(5000),
62+
CornerRadius = new Thickness(10, 20, 30, 40),
6263
BackgroundColor = Color.LightBlue
6364
};
6465

src/CommunityToolkit/Xamarin.CommunityToolkit/Extensions/VisualElement/VisualElementExtension.shared.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public static async Task DisplayToastAsync(this VisualElement visualElement, Toa
8585
var options = new SnackBarOptions
8686
{
8787
MessageOptions = toastOptions.MessageOptions,
88+
CornerRadius = toastOptions.CornerRadius,
8889
Duration = toastOptions.Duration,
8990
BackgroundColor = toastOptions.BackgroundColor,
9091
IsRtl = toastOptions.IsRtl

0 commit comments

Comments
 (0)