Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

How can I create a Popup that takes whole bottom of the screen? #992

Answered by Cfun1
maxkoshevoi asked this question in Q&A
Discussion options

You must be logged in to vote

Create a custom size that takes the whole screen width and for example takes 40% of screen Height:

public static Size Custom => new Size((DeviceDisplay.MainDisplayInfo.Width / DeviceDisplay.MainDisplayInfo.Density), 
                                0.4 * (DeviceDisplay.MainDisplayInfo.Height / DeviceDisplay.MainDisplayInfo.Density));

Look at https://github.com/xamarin/XamarinCommunityToolkit/blob/develop/samples/XCT.Sample/Pages/Views/Popups/PopupSize.cs use your custom size in Size property like in sample app:

and finally set the posit…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@maxkoshevoi
Comment options

@maxkoshevoi
Comment options

@maxkoshevoi
Comment options

@Cfun1
Comment options

Answer selected by maxkoshevoi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants