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
-
Something like this: |
Beta Was this translation helpful? Give feedback.
Answered by
Cfun1
Feb 26, 2021
Replies: 1 comment 4 replies
-
Create a custom size that takes the whole screen width and for example takes 40% of screen Height:
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 position to bottom center also like shown in the sample appI know I am kinda of linked you to the sample code, hope globally it is helpful. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
maxkoshevoi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a custom size that takes the whole screen width and for example takes 40% of screen Height:
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:
XamarinCommunityToolkit/samples/XCT.Sample/Pages/Views/Popups/SimplePopup.xaml
Line 6 in e976b79