Migration from Xamarin Backdrop Page to .NET MAUI Backdrop Page

13 Aug 20263 minutes to read

To migrate from the Xamarin Backdrop Page to .NET MAUI Backdrop Page easier, most of the APIs from the Xamarin SfBackdropPage were kept in the .NET MAUI SfBackdropPage.

Namespaces

Xamarin Backdrop Page .NET MAUI Backdrop Page
Syncfusion.XForms.Backdrop Syncfusion.Maui.Backdrop

Initialize control

To initialize the control, import the Backdrop namespace and initialize the SfBackdropPage as shown in the following code sample.

Xamarin Backdrop page
<backdrop:SfBackdropPage xmlns="http://xamarin.com/schemas/2014/forms"
                         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                         xmlns:backdrop="clr-namespace:Syncfusion.XForms.Backdrop;assembly=Syncfusion.SfBackdrop.XForms"
                         x:Class="BackdropGettingStarted.BackdropSamplePage"
                         Title="Menu">

</backdrop:SfBackdropPage>
using Syncfusion.XForms.Backdrop;	
namespace BackdropGettingStarted
{
    public partial class BackdropSamplePage : SfBackdropPage
    {
        public BackdropSamplePage()
        {
            InitializeComponent();
            this.Title = "Menu";
        }
    }
}
.NET MAUI Backdrop page
<backdrop:SfBackdropPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
                         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                         x:Class="BackdropGettingStarted.BackdropSamplePage"
                         Title="Menu"
                         xmlns:backdrop="clr-namespace:Syncfusion.Maui.Backdrop;assembly=Syncfusion.Maui.Backdrop"
                         >
    
</backdrop:SfBackdropPage>
using Syncfusion.Maui.Backdrop;
namespace BackdropGettingStarted;

public partial class BackdropSamplePage : SfBackdropPage
{
    public BackdropSamplePage()
    {
        InitializeComponent();
        this.Title = "Menu";
    }
}

Unsupported features from Xamarin.Forms