i have this code
ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:border="clr-namespace:Syncfusion.XForms.Border;assembly=Syncfusion.Core.XForms"
xmlns:inputLayout="clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:button="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
xmlns:syncfusion="clr-namespace:Syncfusion.SfBusyIndicator.XForms;assembly=Syncfusion.SfBusyIndicator.XForms"
xmlns:sfPopup="clr-namespace:Syncfusion.XForms.PopupLayout;assembly=Syncfusion.SfPopupLayout.XForms"
x:Class="WGBSync.Views.Register" BackgroundImage="bg.png" NavigationPage.HasBackButton="False" NavigationPage.HasNavigationBar="False">
<sfPopup:SfPopupLayout x:Name="popupme" >
<sfPopup:SfPopupLayout.Padding>
<OnPlatform x:TypeArguments="Thickness">
<On Platform="iOS" Value="0, 20, 0, 0" />
</OnPlatform>
</sfPopup:SfPopupLayout.Padding>
<sfPopup:SfPopupLayout.Content>
<StackLayout x:Name="mainLayout">
<Grid>
</Grid>
</sfPopup:SfPopupLayout.Content>
</sfPopup:SfPopupLayout >
and this c# code
public void popup(string message, int type, string header)
{
try
{
contentTemplateView = new DataTemplate(() =>
{
popupContent = new Label
{
Text = message,
TextColor = type == 1 ? Color.Green : Color.Red,
BackgroundColor = Color.White,
HorizontalTextAlignment = TextAlignment.Center,
};
return popupContent;
});
headerTemplateView = new DataTemplate(() =>
{
popupheader = new Label
{
Text = header,
FontAttributes = FontAttributes.Bold,
BackgroundColor = type == 1 ? Color.Green : Color.Red,
FontSize = 16,
TextColor = Color.White,
HorizontalTextAlignment = TextAlignment.Center,
VerticalTextAlignment = TextAlignment.Center
};
return popupheader;
});
popupme.PopupView.HeaderTemplate = headerTemplateView;
popupme.PopupView.ContentTemplate = contentTemplateView;
popupme.PopupView.AppearanceMode = AppearanceMode.OneButton;
popupme.PopupView.AnimationMode = AnimationMode.Zoom;
popupme.PopupView.AcceptButtonText = "OK";
popupme.Show();
}
catch(Exception ex)
{
return;
}
}
i want to call popup like this on registration success popup("Registration Successful",1,"Sucess") on the click of register button.
am getting noSuchmethodError