<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:popuplayout="clr-namespace:Syncfusion.XForms.PopupLayout;assembly=Syncfusion.SfPopupLayout.XForms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:SampleApp" x:Class="SampleApp.MainPage"> <StackLayout> <Button Text="Show Dialog" Command="{Binding ShowDialog}" /> <popuplayout:SfPopupLayout IsOpen="{Binding DialogVisible}"> <popuplayout:SfPopupLayout.Content> <StackLayout> <Label Text="Welcome to Xamarin.Forms!" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" /> StackLayout> popuplayout:SfPopupLayout.Content> popuplayout:SfPopupLayout> StackLayout> ContentPage>
<ContentPage.Content>
<popuplayout:SfPopupLayout IsOpen="{Binding DialogVisible}">
<popuplayout:SfPopupLayout.PopupView>
<popuplayout:PopupView>
<popuplayout:PopupView.ContentTemplate>
<DataTemplate>
<StackLayout>
<Label Text="Content can be loaded here..."/>
</StackLayout>
</DataTemplate>
</popuplayout:PopupView.ContentTemplate>
</popuplayout:PopupView>
</popuplayout:SfPopupLayout.PopupView>
<popuplayout:SfPopupLayout.Content>
<StackLayout>
<Button Text="Show Dialog" Command="{Binding ShowDialog}" />
<Label Text="Welcome to Xamarin.Forms!"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
</StackLayout>
</popuplayout:SfPopupLayout.Content>
</popuplayout:SfPopupLayout>
</ContentPage.Content>
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:popuplayout="clr-namespace:Syncfusion.XForms.PopupLayout;assembly=Syncfusion.SfPopupLayout.XForms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:SampleApp" x:Class="SampleApp.MainPage"> <ContentPage.Content> <StackLayout> <Button Text="Show Dialog 1" Command="{Binding Dialog1Visible}" /> <Button Text="Show Dialog 2" Command="{Binding Dialog2Visible}" /> <popuplayout:SfPopupLayout IsOpen="{Binding Dialog1Visible}"> <popuplayout:SfPopupLayout.PopupView> <popuplayout:PopupView> <popuplayout:PopupView.ContentTemplate> <DataTemplate> <StackLayout> <Label Text="Dialog 1 Content" /> StackLayout> DataTemplate> popuplayout:PopupView.ContentTemplate> popuplayout:PopupView> popuplayout:SfPopupLayout.PopupView> popuplayout:SfPopupLayout> <popuplayout:SfPopupLayout IsOpen="{Binding Dialog2Visible}"> <popuplayout:SfPopupLayout.PopupView> <popuplayout:PopupView> <popuplayout:PopupView.ContentTemplate> <DataTemplate> <StackLayout> <Label Text="Dialog 2 Content" /> StackLayout> DataTemplate> popuplayout:PopupView.ContentTemplate> popuplayout:PopupView> popuplayout:SfPopupLayout.PopupView> popuplayout:SfPopupLayout> StackLayout> ContentPage.Content> ContentPage>