I was willing to place a popup for a signup form just like a dialog fragment in the xamarin android.
https://developer.xamarin.com/guides/android/platform_features/fragments/part_3_-_specialized_fragment_classes/
I had spent much time researching for this but failed to create one. My intension is to take the input from the popup created and hit a API in the background showing the loader and in success i like to close the loader and the popup used to take data from the user. Can any one help me out doing this in xamarin forms.
Use Rg plugins popup, link for reference https://github.com/rotorgames/Rg.Plugins.Popup
Can anyone suggest a best method to show pop up with close button by default in Xamarin forms with animations. To be more specific, if we are clicking on a card, it should come from the location of tap or click.
I have used xlabs for the same. Is there any other packages that I can use?
Could you share a sample code if possible?
I am working on an app where in one screen it has to popup contact selection, then user will select a contact (perhaps click on it) and the contact information will be passed back to the xamarin forms page to fill out the form. I am using visual studio.
I am new to xamarin forms, I have a requirements that should hide the mobile keyboard when user click search button.
I am not sure yet how to do it in xamarin forms
There are a couple of ways to do this, the most common are as follows:
View.ResignFirstResponder();
OR
View.EndEditing(true);
I’m working on an application for Android and iOS, which requires a certain flexibility for one or two views. That’s why we created & implemented a service that translated a basic list of objects into a user interface for both iOS & Android. But now that Xamarin.Forms is released, we decided to replace our service by the one Xamarin provides. I did succeed in creating the views with Xamarin.Forms, resulting in better looking & smoother running pages. But my problem lies in the navigation of it. Here is a little drawing on what I would like to achieve:
I would like my app to start an activity that starts with a custom fragment. After clicking a button on this fragment, I would like the page I created with the Xamarin.Forms api to be added to my current navigation stack! Once the user is finished with the Xamarin.Forms page, it navigates to a second custom fragment, all that without breaking the navigation cycle. Does anybody have an idea on how I can achieve this?
For the iOS developpers: replace Activity with NavigationController & Fragment with ViewController
Take a look at CarouselPage for Xamarin.Forms' own approach. It doesn't look like that's what you need but you can also look at its source code and maybe make a custom renderer yourself.
You may also want to take a look at MVVM
As for the easier/hackier way you'd want to make a button on each page and when the button is tapped execute Navigation.PushModalAsync(nextPage) - there won't be a "< Back" button any more, you may need to implement that yourself if you need it.
If by your meaning of 'current navigation stack' is for using the native Navigation of each platform, then remember that you don't have to use Xamarin.Forms' Navigation Model and functions such like PushAsync.
If you prefer to do Navigation with code specific to each platform then you can do this the same as normal. Just create your stub pages in each platform specific project and set the Xamarin.Forms content for each page from the shared project.
From each platform specific stub page (Activity / UIView / PhoneApplicationPage) you could then execute an Action<> call setting on the shared Xamarin.Forms page to help with the navigation, or alternatively, hook into a custom-event that is raised from the Xamarin.Forms** page back to the platform specific stub page to allow you to do navigation from there.
Like Sten mentioned there won't be any 'Back' button so you will most likely have to do that yourself.