Contents
- Namespaces
- Initialize Control
- Classes
- Properties
- Enums
- Upcoming Features
Having trouble getting help?
Contact Support
Contact Support
Migrate from Xamarin.Forms SfPopupLayout to .NET MAUI SfPopup
To migrate easier from Xamarin.Forms SfPopupLayout to .NET MAUI Popup, we kept most of the APIs from Xamarin SfPopupLayout in MAUI SfPopup. However, to maintain the consistency of API naming in MAUI SfPopup, we renamed some of the APIs. The APIs that have been changed in MAUI SfPopup from Xamarin SfPopupLayout are detailed as follows.
Namespaces
Xamarin SfPopupLayout | .NET MAUI SfPopup |
---|---|
Syncfusion.XForms.SfPopupLayout | Syncfusion.Maui.Popup |
Initialize Control
To initialize the control, import the popup namespace and initialize SfPopup as shown in the following code sample.
Xamarin SfPopupLayout | .NET MAUI SfPopup |
---|---|
|
|
Classes
Xamarin SfPopupLayout | .NET MAUI SfPopup | Description |
---|---|---|
SfPopupLayout | SfPopup | Displays an alert message with customizable buttons or loads a desired view within a pop-up window. |
PopupView | Nil | Not supported |
Properties
NOTE
All the properties from the Xamarin.Forms PopupView class is moved to the MAUI SfPopup class itself.
Xamarin SfPopupLayout | .NET MAUI SfPopup | Description |
---|---|---|
SfPopupLayout.Content | Nil | Not supported |
SfPopupLayout.PopupView | Nil | Not supported |
Gets or sets the background color to be applied for the header. | ||
Gets or sets the background color of the footer. | ||
Gets or sets the background color of accept button in the footer. | ||
Gets or sets the background color of decline button in the footer. | ||
Gets or sets the border color for the PopupView | ||
Gets or sets the border thickness for the PopupView | ||
You can achieve by setting value using rgba value like below,
|
||
SfPopuplayoutResources.Title | SfPopupResource.Title | Gets the TitleLabelText. |
SfPopuplayoutResources.Popup_message | SfPopupResource.Message | Gets the MessageView text. |
SfPopuplayoutResources.ACCEPT | SfPopupResource.AcceptButtonText | Gets the Accept button text. |
SfPopuplayoutResources.DECLINE | SfPopupResource.DeclineButtonText | Gets the Decline button text. |
Enums
Xamarin SfPopupLayout | .NET MAUI SfPopup | Description |
---|---|---|
Defines constant that specify how the PopupView is Sized. | ||
Built-in layout styles of the PopupView. | ||
Defines constants that specifies the intensity of the blur effect applied to the overlay. | ||
Defines constants that specifies whether the overlay should be transparent or blurred. | ||
Positions the popup view relative to the given view. |
Upcoming Features
- Popup position - ShowAtTouchPoint()