Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAUI: Pop up page is not loading on Button click (Android Platform) #765

Open
sreejith-pagematics opened this issue Dec 11, 2023 · 0 comments

Comments

@sreejith-pagematics
Copy link

I am using RGPopup.Maui-Version=1.0.2 NuGet Package to show the pop up pages on the UI and now I am facing a weird issue on a project.

When I tap on a button I need to load a pop up page but it is not loading. The same page I am able to load from another page but on a particular page I am not able to load.

I am using below code to load the pop up page:

await PopupNavigation.Instance.PushAsync(new UploadImagePopupPage("imagepath"), true);

There is no error or exception but the page it not visible on the UI.

Below is the code of my pop up page:

<pages:PopupPage 
	xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
	xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
	xmlns:rgAnimations="clr-namespace:RGPopup.Maui.Animations;assembly=RGPopup.Maui" 
	xmlns:pages="clr-namespace:RGPopup.Maui.Pages;assembly=RGPopup.Maui"
	xmlns:local="clr-namespace:Demo"
	x:Class="Demo.Pages.UploadImagePopupPage">
	
		<StackLayout  
			Orientation="Vertical"
			Margin="10"
			BackgroundColor="White"
			HorizontalOptions="CenterAndExpand"
			VerticalOptions="CenterAndExpand">
			
			<Label 
				x:Name="desc_label"
				Text="Enter caption"
				HorizontalOptions="CenterAndExpand"
				Margin="5"
				HorizontalTextAlignment="Center"
				FontFamily="Italic"
				TextColor="Black">
				<Label.FontSize>
					<OnIdiom x:TypeArguments="x:Double">
						<OnIdiom.Phone>15</OnIdiom.Phone>
						<OnIdiom.Tablet>22</OnIdiom.Tablet>
						<OnIdiom.Desktop>15</OnIdiom.Desktop>
					</OnIdiom>
				</Label.FontSize>
			</Label>
			
			//other views
			
			</StackLayout>
</pages:PopupPage>

I have created a demo and uploaded here for the reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant