Xamarin Forms Pop Up

Hello friends. In this article, we will talk about creating Pop Up on Xamarin Forms. What is Pop Up at first? Pop up means that the UK will suddenly appear. In Xamarin Forms, you can think of it as a page that covers a certain area of the page. Why is Pop Up so so important? The common feature of large applications is simple and usable. With Pop Up we can earn them from my mobile application.

To explain with an example; we would like to get suggestions from a user in a project. To do this you need to press the Give suggestion button and open a Pop Up menu. Because getting a simple suggestion to go to another page will be bad for design and usability. Users, in fact, attach great importance to design in practice. So we will use pop ups.

You need to use the plugin to make a Pop Up menu in Xamarin Forms. You can, of course, write your own. This is Nuget Package name: Rg.Plugins.Popup. After adding this package to the whole project, you need to run the Initialize () function for each platform. For example iOS;

After that, we can pass the design. In this example, the start page will be opened and there will be a button in the middle, and we will pop up the suggestion Pop Up when we click on the button. The design part of the page that will open Pop Up is as below.

Then we have to function for the button. This function is slightly different. It is actually a function that comes with this package. A function from the PopupNavigation class.

As you can see below there is a design screen. This page is a PopUpPage type. This is the first feature we should pay attention to. In order to use the properties of this class after changing the page, we add the pages and animation properties to access the xaml outcome. Then we add animation as our first job. This is a part of you that is entirely up to you. You can set how long you want to be on the screen, how long you have to go on the screen, what animations will be used when you are on the screen, and where they will appear on the screen.

The screen output is as follows.

If you have any questions, please feel free to email or comment. You can reach the project here.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.