The Xamarin Popup layout control, also known as the Xamarin.Forms Modal Dialog control, is an alert dialog or popup that can be displayed in the desired position. It also provides options to customize and load any desired view in the control. The Xamarin.Forms popup has built-in layouts to display alert or popup for conventional needs. Furthermore, it provides options to customize the popup position with various animation modes and much more.
Built-in Xamarin Dialogs allow you to show a popup with accept and decline functionalities for all basic scenarios. The built-in layouts of the popup comprise three regions, the header, body, and footer. Each region is fully customizable using a template to display the required information and notification.
In addition, you can decide to show or hide the headers and footers in a popup. Most importantly, you can use the Xamarin.Forms popup and its layout completely using the MVVM approach.
Above all, you can use the Xamarin.Forms popup layout as a modal window. It prevents interaction with the application until the window is closed using the built-in close icon.
The Xamarin.Forms popup control provides various built-in animations when displaying and dismissing the popup for a better user experience. The built-in animations available are:
Use built-in position customization options to display the popup in different ways based on application needs. You can display the popup in the below positions:
Localize all static default strings in a Xamarin.Forms Popup to any desired language.
Easily get started with the Xamarin.Forms Popup using a few simple lines of C# code example as demonstrated below. Also explore our Xamarin.Forms Popup Example that shows you how to render and configure the Popup for Xamarin.Forms.
<syncfusion:SfPopupLayout x:Name="popupLayout">
< syncfusion:SfPopupLayout.Content>
<StackLayout >
<Button x:Name="clickToShowPopup" Text="ClickToShowPopup" />
</StackLayout>
</ syncfusion:SfPopupLayout.Content>
</ syncfusion:SfPopupLayout>
using Syncfusion.XForms.PopupLayout;
namespace PopupLayoutDemo
{
public partial class MainPage : ContentPage
{
SfPopupLayout popupLayout;
public MainPage()
{
InitializeComponent();
popupLayout = new SfPopupLayout();
}
}
}
The Syncfusion Xamarin Popup provides the following:
You can find our Xamarin Popup demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.