27 Dec 20232 minutes to read
To make the migration from the Xamarin SfCards to .NET MAUI SfCards easier, most of the APIs from the Xamarin SfCards were kept in the.NET MAUI SfCards. However, to maintain the consistency of API naming in the .NET MAUI SfCards, some of the APIs have been renamed. Please find the difference in the following topics.
Namespaces
Xamarin SfCards |
.NET MAUI SfCards |
Syncfusion.SfCards.XForms |
Syncfusion.Maui.Cards |
Initialize control
To initialize the control, import the calendar namespace and initialize SfCalendar
as shown in the following code sample.
Xamarin SfCards |
.NET MAUI SfCards |
<ContentPage xmlns:cards="clr-namespace:Syncfusion.XForms.Cards;assembly=Syncfusion.Cards.XForms">
<cards:SfCardView>
<Label Text="SfCardView"/>
</cards:SfCardView>
</ContentPage>
using Syncfusion.Cards.XForms;
...
SfCardView cardView = new SfCardView();
//set Content for card view
cardView.Content = new Label(){ Text="SfCardView" };
this.Content = cardView;
|
<ContentPage xmlns:card="clr-namespace:Syncfusion.Maui.Cards;assembly=Syncfusion.Maui.Cards">
<card:SfCardView x:Name="sfCardView">
<Label Text="SfCardView"/>
</card:SfCardView>
</ContentPage>
using Syncfusion.Maui.Cards;
...
SfCardView cardView = new SfCardView();
cardView.Content = new Label(){ Text="SfCardView" };
this.Content = cardView;
|
Properties
SfCards
The following code example, explains how to initialize the properties of the Xamarin SfCards
and .NET MAUI SfCards
class.
Events
Methods
Upcoming Features