From 5f858c05fa966cf2977c433383848f3994e3fb63 Mon Sep 17 00:00:00 2001 From: Oleksandr Liakhevych Date: Wed, 13 Nov 2024 23:53:41 +0200 Subject: [PATCH] Add deprecated attributes for Frame and Compatibility.Layout --- src/BlazorBindings.Maui/Elements/Compatibility/Layout.cs | 5 +++++ src/BlazorBindings.Maui/Elements/Frame.cs | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 src/BlazorBindings.Maui/Elements/Compatibility/Layout.cs create mode 100644 src/BlazorBindings.Maui/Elements/Frame.cs diff --git a/src/BlazorBindings.Maui/Elements/Compatibility/Layout.cs b/src/BlazorBindings.Maui/Elements/Compatibility/Layout.cs new file mode 100644 index 00000000..13386d21 --- /dev/null +++ b/src/BlazorBindings.Maui/Elements/Compatibility/Layout.cs @@ -0,0 +1,5 @@ +namespace BlazorBindings.Maui.Elements.Compatibility; + + +[Obsolete("Use Microsoft.Maui.Controls.Layout instead. For more information, see https://learn.microsoft.com/dotnet/maui/user-interface/layouts/custom")] +public partial class Layout; \ No newline at end of file diff --git a/src/BlazorBindings.Maui/Elements/Frame.cs b/src/BlazorBindings.Maui/Elements/Frame.cs new file mode 100644 index 00000000..701a0295 --- /dev/null +++ b/src/BlazorBindings.Maui/Elements/Frame.cs @@ -0,0 +1,4 @@ +namespace BlazorBindings.Maui.Elements; + +[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")] +public partial class Frame; \ No newline at end of file