Coder Social home page Coder Social logo

rg.plugins.popup's Introduction

Popup Page Plugin for Xamarin Forms Build status NuGet Downloads

Rg.Plugins.Popup - is a cross platform plugin for Xamarin.Forms which allows you to open Xamarin.Forms pages as a popup that can be shared across iOS, Android, UWP, and macOS. Also the plugin allows you to use very simple and flexible animations for showing popup pages. For more information see Wiki

Warning: Beginning with v1.1.x you must initialize this plugin and add some code in MainActivity that a hardware android back button works. See Getting Started

Setup

Landing

Support platforms

  • Android (monoandroid10.0)
  • iOS
  • UWP (Min Target: 10.0.18362)
  • Tizen
  • WPF
  • MacOS

Documentation

You can find all descriptions of Getting Started, How to use, Troubleshooting and etc in the Wiki

Created By: Kirill Lyubimov

License

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

rg.plugins.popup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rg.plugins.popup's Issues

Glitch in animation when popping

Hi, I think I'm just noticing a small glitch in the animation when popping, it looks like after the page has been popped in my case a centered scale out the page momentarily displays itself at normal scale then disappears after it has scaled out. I'm using the latest v1.0.0 with PopupPage.Animation

NavigationBar Items are Not Showing after referencing

Hi @rotorgames ,

The popup page are showing/working properly after adding the Nuget Reference in iOS and Android Platforms.
Issue is,
Actionbar items are shown properly in Android Platform but in iOS Platform , NavigationBar items are not showing after adding the Rg.Plugins.PopUp reference.

This is for your information:
Version Visual Studio : 4.0.4.4
Version Xamarin studio: 5.10.3(build 51)
Version Xamarin Forms: 2.2.0.31
Xamarin iOS Version : 9.6.2.2
Popup plugin version:0.0.16
Ref Image

Navigate to another page using PushAsync from ListView inside Popup

Hi, rotorgames. I wanna thank you first for this awesome plugin. But I've got a problem, tho.

So, my case is, i have ListView element inside my PopupPage, and I want to give the OnClick action of the list item so it can be navigate to another page which have to be one stack above the home page (main/root page of the popup). and when 'Back' button hit, the screen will switch back to the home/main page.

In PopupPage.xaml.cs, I implement this code for listItem.ItemSelected:

async void OnItemSelected(object sender, SelectedItemChangedEventArgs e){
      await Navigation.PushAsync(new FilterResultPage());
}

and I got this error when the function fired

System.InvalidOperationException: PushAsync is not supported globally on Android, please use a NavigationPage.

I think it might be has something to do with Navigation and NavigationPage stuff, I've tried some trick, But i still stuck.

Can you help me with this? Thank you so much

Create interface IPopupPage abstraction for device implementation

First, I absolutely love this plugin. Fantastic job!

I'd suggest creating an interface for the popup page, and having the PushPopupAsync method accept the IPopupPage as the argument rather than the concrete PopupPage type.

The reason for this suggestion is that I needed to make a device-specific implementation using Xamarin's DI.

As a work-around, I created my own interface and am casting it to a popuppage on the fly, but I thought it would be pretty cool if we could do that without the extra cast.

Ex:

            var loginPopup = DependencyService.Get<ILogInPopup>();
            // Currently doing this
            await Navigation.PushPopupAsync((loginPopup as PopupPage), true);

I'd love to contribute if I can, but I wanted to float the idea before putting in the work.

Thanks!

NullReferenceException in Entry on second display of popup

When I have a popup with an Entry, the popup works on first display. No problem.

When displayed a second time - the app crashes with a NullReferenceException after the Entry handles focus and before the keyboard is displayed.
the call stack says the exception is coming from SetElementSize in KeyBoardUpNotification

screen shot 2016-10-04 at 11 43 47 am

x

Pop up window is not strictly modal

Hi,
While this is a good implementation of showing a pop up window that is smaller in size than the parent it lacks one important feature viz. showing the pop up as a modal window. If I tap anywhere outside the pop up window it closes which is not the correct behavior. This pop up window should be strictly modal until the user taps the button to dismiss it.

Can this be fixed because that is one important behavior to follow when implementing pop ups.

Regards,

Rajesh.

[iOS] If a tap hides the keyboard, then the default action may be swallowed

I have a popup with an Entry and a Switch. When the user focusses the Entry, then the whole popup moves up on the iPad which is great.
When the text has been entered and I tap the Switch to change its state, then the keyboard hides, the popup moves back down, but the state of the Switch sometimes does not change. Due to the tap it should change from on to off or vice versa.

@rotorgames Fix in:

  • - UWP, WP
  • - Android
  • - iOS

Correctly determining parent page

Dear Kirill,

First of all thanks for a wonderful library.

I have a bit complex application where there are multiple navigation stacks and facing an issue when using Rx.Plugins.Popup in few situations.

After reading your code, I believe the issue is coming from the implementation of

private static Page GetParentPage()
        {
            Page lastPage = Application.Current.MainPage.Navigation.ModalStack.LastOrDefault();

            if (lastPage == null)
                lastPage = Application.Current.MainPage;

            return lastPage;
        }

Here you are using the Navigation of MainPage, now a relatively complex application could have a page that has its own Navigation Stack. I wanted to show the popup on the page that has its own navigation stack but it appears on the stack of MainPage (as per your implementation)

I believe that this could be fixed by letting the caller of your API provide the parent page on which you should show the Popup. If the caller does not provide the parent page then you use your GetParentPage implementation. Have not tested this suggestion myself but in theory should work.

Again, thanks for the great work you have done on this library.

Regards
Kapil

Using a stack of popup pages.

Hi,
I have a requirement where I need to show three pop pages one after the other (similar to a wizard where you click the next button to navigate to the next page).

The flow is like this.

User loads the application. Buttons are visible on the home page.
User clicks the first button. A popup page appears.
On a button on this first popup page user call another popup page and it appears on top of the first popup page.
On a button on this second popup page user call another popup page and it appears on top of the second popup page.
Now when user click on a button on the third pop up page it should close ALL the popup pages.

How can it be done. I noticed that when calling await Navigation.PopPopupAsync(); on the second popup page it closes ONLY the second popup page and leaves the first popup page open.

Any idea to achieve this functionality

Thanks.

[iOS] View is not in windows hierarchy

I've gotten the following warning when trying to display a popup on iOS:

Warning: Attempt to present <Rg_Plugins_Popup_IOS_Renderers_PopupPageRenderer: 0x14a1eebe0> on <Rg_Plugins_Popup_IOS_Renderers_PopupPageRenderer: 0x14a1d4b60> whose view is not in the window hierarchy!

I sadly haven't been able to reproduce it yet. This has only happened once, restarting the app and trying again fixed it.

Once I have reproduced I'll let you know

Windows Phone

Hi ,

Can you please update when windows phone will be support.

Thanks
cpmdteam

Plugin on Nugets doesn't work on simulator

I tried using demo sample project , its works well on simulator. I want to try on Device too
But when i include the plugin 0.0.17 to my Xamarin Forms iOS/Android, it returns me below error.

I have update Xamarin on my windows Xamarin and Mac Xamarin
I even follow step at #3 --steps that are in Images you pushed but it doen't work for me..

O.s 9.3
SImulator - ios 9.3 Air 2 /iOS 9.2 iPad
android

I got this error when i call the FirstPopupPage.

{System.NullReferenceException: Object reference not set to an instance of an object
at Rg.Plugins.Popup.Animations.FadeContentAnimation.Preparing (Xamarin.Forms.View content, Rg.Plugins.Popup.Pages.PopupPage page) [0x00008] in :0
at Rg.Plugins.Popup.Animations.ScaleAnimation.Preparing (Xamarin.Forms.View content, Rg.Plugins.Popup.Pages.PopupPage page) [0x00000] in :0
at Rg.Plugins.Popup.Pages.PopupPage.PreparingAnimation () [0x0001c] in :0
at Rg.Plugins.Popup.Services.PopupNavigation.PushAsync (Rg.Plugins.Popup.Pages.PopupPage page, Boolean animate) [0x0002d] in :0
at Rg.Plugins.Popup.Extensions.NavigationExtension+d__0.MoveNext () [0x0000a] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113
at bizzmapp.Videos+d__16.MoveNext () [0x0005d] in G:\Arjun_TL\Divyesh Patel Project\bizzmapp\bizzmapp\bizzmapp\Pages\Videos.xaml.cs:929 }

UWP/ Windows/Windows Phone load assembly issue

Hi,
I'm facing as issue related to loading assembly while working with UWP/ Windows/Windows Phone projects
however on Droid all working fine,

what i did:
create new solution and install Popup Page Plugin for Xamarin Forms 1.0.2
create main page with one button that call:
await Navigation.PushPopupAsync(loginPopup);
where loginPopup page is exactly same as in the Demo you provided,

on Android the pop up is working nicely
on any Windows solution crashed with this exception:

'Rg.Plugins.Popup.Services.PopupNavigation' threw an exception.
Could not load file or assembly 'Rg.Plugins.Popup.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"Rg.Plugins.Popup.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

in UWP App.cs file i add the following:
Xamarin.Forms.Forms.Init(e, Rg.Plugins.Popup.Windows.Popup.GetExtraAssemblies());
with no luck
i tried this also
List<Assembly> assembliesToInclude = new List<Assembly>(); assembliesToInclude.Add(typeof(Rg.Plugins.Popup.Windows.Popup).GetTypeInfo().Assembly); Xamarin.Forms.Forms.Init(e, assembliesToInclude);

with same error,

any help would be much appreciated.

[iOS] - the background color is lost when trying to re-use the PopupPage instance

in the constructor of subclass of PopupPage, I set customized background color, the colors works first time the instance of this class to be popuped by Rg.Plugins.Popup.Services.PopupNavigation.PushAsync method, but after closed and using same method to popup same instance, the background color gone. (opacity property seems has same bug)

(PCL project) UWP version throw exception

I'm trying to display popup on UWP version but throw exception.

async void loginButton_Clicked(object sender, EventArgs e) { await PopupNavigation.PushAsync(new FBLogin()); }

`public partial class FBLogin : PopupPage
{
IDeviceInfo device;
string accessToken;
public FBLogin()
{
BindingContext = new FacebookViewModel();

         Title = "Entrar com Facebook";
         BackgroundColor = Color.White;

         var apiRequest =
             "https://www.facebook.com/dialog/oauth?client_id="
             + ClientId
             + "&display=popup&response_type=token&redirect_uri=http://www.facebook.com/connect/login_success.html";

         var webView = new WebView
         {
             Source = apiRequest,
             HeightRequest = 1
         };

         webView.Navigated += WebViewOnNavigated;

         Content = webView;
    }

}`

Additional information: The type initializer for 'Rg.Plugins.Popup.Services.PopupNavigation' threw an exception.

Could not load file or assembly 'Rg.Plugins.Popup.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system can not find the file specified.

Attempting to gather dependency information

The problem occurs when beginning the installation using the nuget in .droid.

Attempting to gather dependency information for package 'Rg.Plugins.Popup.1.0.0-pre5' with respect to project 'CpRas.Droid', targeting 'MonoAndroid,Version=v6.0'

Popup displayed fullscreen problem

I've try to use your popup plugin to create a popup, but the popup display fullscreen that is not my expectation. Here my source:
image

image
My result:
image
Please help me to resolve this issue.Thanks.

Nuget Package Exception for Plugin Reference

Hi,
I have created sample application to check the Popup layout and added the Nuget Reference to "Rg.Plugins.Popup" Library .
After adding the reference it throws the Exceptions for "package Android.support.v7.internal.widget"
But we have updated the SDK Manager with All latest versions(up to 23) . Please refer the error screenshot for reference.

Android Package Error

Kindly help me to resolve the issue.

Ignores MinimumHeightRequest MinimumWidthRequest

Just getting started with this and seems to be a great package.
However even on the simplest of testing pages the width/height are ignored.
The examples in your .gif in the project look nice. Any chance of you including the markup for those, if only as a starting point for new adopters of the package?

<pages:PopupPage x:Class="TestingApp.Popups.PopupTest"
                 xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 xmlns:animations="clr-namespace:Rg.Plugins.Popup.Animations;assembly=Rg.Plugins.Popup"
                 xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
                 x:Name="this"
                  MinimumHeightRequest="300"
                 MinimumWidthRequest="300">

License ?

What license is this under ... MIT? Be useful if you could add a license file.

Click background overlay to close popup

Is there a way to make it so when you click the background overlay the popup will close? If not, it may be something good to add an option for. Excellent plugin btw :)

iOS: PushPopupAsync() crashes in Release mode

PushPopupAsync() works fine in Debug mode, both in the simulator and on the device.

However, when I change the app to "Release" mode, and deploy to a device, attempting to display a popup crashes the app.

I am including a sample project via Dropbox demonstrating this issue. Open the solution, switch the build to "Release" and deploy to a device, then tap the "Show Popup" button to crash.

Sample project:
https://www.dropbox.com/s/y8mkklmknn89lp9/PopupTest.zip?dl=0

Use Popup with FreshMvvM Framework

Hi,
I want to use Rg.Plugins.Popup Component with FreshMvvm framework.

To trigger the popup page, you have mentioned to call the Rg.Plugins.Popup.Extensions.NavigationExtension.PushPopupAsync through Navigation class.
But we want use this feature from the Page Model Class(FreshBasePageModel).

Thanks you so much for your support.
Best Regards,
Kathirvelu M

Typo in namespace / class names

Hey there,
First thing first, good job on that plugin, it's exactly what I needed and seems to work well!

Something tickles me though; typos in class and namespace names and those typos, to me, don't make your work look as professional as it could.

So far I found those :

  • Rg.Plugins.Popup.Extensions.NavigatonExtension instead of NavigationExtension
  • Rg.Plugins.Popup.Extensions.NavigatonExtension.PopAllPopupAsunc instead of Async
  • Rg.Plugins.Popup.Extensions.NavigatonExtension.PopPopupAsunc instead of Async

I'd have fixed those myself but I don't have time to do that and make sure it doesn't create problems elsewhere at the moment and I'd rather not break anything.

Keep up the good work dude! ๐Ÿ‘

Using Delegate Callback to pass value from the Rg pop up window to the parent.

Hi,

I am having a situation similar to this #14

I have a Entry control on a content form and on tap event I am showing the Rg pop up window.

In this Rg pop up window I have a listview that is populated from a database. When the user selects a value from the listview, I want to pass this selected value back to the content form. As suggested by you in the thread mentioned above , I am using call back delegates to pass the value.

This is how i defined the code.

Content form that hosts the entry control.

   `//Declaring the delegate to pass the value from SearchPicker to the control that calls it
    public delegate void AddItemDelegate(string item);
  //handle the tap event of the entry control.
   var frmSearchPicker = new SearchPicker(passvalue);
   frmSearchPicker.AddItemCallback = new AddItemDelegate(this.AddItemCallBackFn);
   Navigation.PushPopupAsync(new SearchPicker(passvalue));`

Rg Popup control that hosts the listview

public MainForm.AddItemDelegate AddItemCallback;      

//the tap event of the listview control inside the Rg popup control.
private void listView_OnSelected(Object sender, SelectedItemChangedEventArgs args)
        {
            if(args.SelectedItem != null)
            {
                Country itm = (Country)args.SelectedItem;
                getSelectedCountry = itm.Name.ToString();
                AddItemCallback(getSelectedCountry);
                //AddItemCallback?.Invoke(getSelectedCountry);
            }
        }

The problem is that the debugger breaks on the line

AddItemCallback(getSelectedCountry); with this exception.

System.NullReferenceException: Object reference not set to an instance of an object.

Please let me know how to make it work correctly so that I can pass the value from the Rg popup control back to the parent form that calls it.

Thanks,

Rajesh.

Building iOS demo from latest sources (1.0.2) fails

Hello,

Building fails at least on Mac with Xamarin Studio 6.1.

Errors on project Rg.Plugins.Popup.Platform.IOS.csproj:

    ../Rg.Plugins.Popup.Platform.cs(17,17): error CS0012: The type `Rg.Plugins.Popup.Contracts.IPopupNavigation' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Rg.Plugins.Popup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
    ../Rg.Plugins.Popup.Platform.cs(18,17): error CS0012: The type `Rg.Plugins.Popup.Contracts.IScreenHelper' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Rg.Plugins.Popup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

If I add the missing reference, it builds successfully.

IsCloseOnBackgroundClick and BackgroundClicked doesn't work.

Hello,

i'm trying to implement Popup plugin into my Xamarin application but i have some trouble ! BackgroundClicked and IsCloseOnBackgroundClick doesn't work... And i don't why, can you help me ?

My code :

` public class JobRemote : PopupPage
{

    public JobRemote(QRCode qr)
    {

        this.BackgroundClicked += () => {

            System.Diagnostics.Debug.WriteLine("AIE");
        };


        IsCloseOnBackgroundClick = true;

        var lol = new RelativeLayout();

        lol.Children.Add(new BoxView { BackgroundColor = Color.White }, Constraint.RelativeToParent((parent) =>
        {
            return parent.X;
        }), Constraint.RelativeToParent((parent) =>
        {
            return parent.Y * .15;
        }), Constraint.RelativeToParent((parent) =>
        {
            return parent.Width;
        }), Constraint.RelativeToParent((parent) =>
        {
            return parent.Height * .8;
        }));

        Content = lol;


    }


    protected override void OnAppearing()
    {
        base.OnAppearing();
    }

    protected override void OnDisappearing()
    {
        base.OnDisappearing();
    }

    protected override bool OnBackButtonPressed()
    {
        return true;
    }
}`

PopupNavigation System.NullReferenceException

I've got an issue I've managed to reproduce with small project while trying to navigate to a user animation popup page. It should be pretty simple and I can't get it to work. I don't know if its a bug or if I'm missing something but there seems to always be a problem with SystemPadding. Here is the link to the project: https://github.com/Parker3306/PopupTest

Thanks for the help.

Edit: this is on Android only so far, by the way. Xamarin.Forms 2.2.0.31 Tested on Google Nexus 6 5.0.0 API 21

Can't control Content margins

I'm facing the problem that I can't seem to be able to control the margin of the content (at least on iOS on iphone6 ). Basically it is too much margin, even when I set all Paddings and Margins to 0, the Content can only consume about 1/2 of the screen height and about 2/3 of the screen width, which is too narrow in many cases. And even if I set only a BoxView as the Content with MinWidth/MinHeightRequest set to 90% of width /height (using absolute values) the BoxView is displayed much smaller that expected/requested. Any tips ?

Nexus 5: Popup with text field hides copy/cut control

See the screenshots below. On Nexus phone, when text is highlighted, a copy/cut control appears at the top of the screen. I have an Rg Popup with a text field. When I try to highlight text for copy I can see that the copy/cut control is hidden underneath the Rg Popup.

1st screenshot: Copy control clearly visible in Google Chrome
2nd screenshot: Rg Popup with copy control hidden underneath

I'm not sure if this is a Xamarin issue or Rg Popup issue, but figured I'd bring it to your attention.

fullsizerender 8
fullsizerender  #9

Plugin / Even Demo do not work in release mode on a device

Tried running the demo app on an ipad mini, the app crashes when it is built in release. It crashes when it tries to push the pop up with :

System.NullReferenceExceptionObject reference not set to an instance of an object
Raw
at Rg.Plugins.Popup.Services.PopupNavigation.PushAsync (Rg.Plugins.Popup.Pages.PopupPage page, Boolean animate) <0x100bbf000 + 0x00160> in :0
at Rg.Plugins.Popup.Extensions.NavigatonExtension+d__0.MoveNext () <0x100bc16b0 + 0x00037> in :0
--- End of stack trace from previous location where exception was thrown ---

Any ideas?

Version: 1.0
Code Type: ARM-64 (Native)
Parent Process: launchd [1]

Date/Time: 2016-02-27 13:28:24.24 -0500
Launch Time: 2016-02-27 13:28:18.18 -0500
OS Version: iOS 9.2.1 (13D15)
Report Version: 105

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread: 0

Filtered syslog:
None found

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001818e8140 pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001819b0ef8 pthread_kill + 112
2 libsystem_c.dylib 0x0000000181859dac abort + 140
3 DemoiOS 0x0000000100b882fc mono_handle_native_sigsegv (mini-exceptions.c:2232)
4 libsystem_platform.dylib 0x00000001819a994c sigtramp + 68
5 libsystem_pthread.dylib 0x00000001819b0ef8 pthread_kill + 112
6 libsystem_c.dylib 0x0000000181859dac abort + 140
7 DemoiOS 0x0000000100c52ba0 print_exception(MonoObject
, bool, NSMutableString_) (runtime.m:782)
8 DemoiOS 0x0000000100b88884 mono_invoke_unhandled_exception_hook (mini-exceptions.c:2586)
9 DemoiOS 0x0000000100b87fcc mono_handle_exception_internal (mini-exceptions.c:1573)
10 DemoiOS 0x0000000100b86f3c mono_handle_exception (mini-exceptions.c:1799)
11 DemoiOS 0x0000000100b80ef0 mono_arm_throw_exception (exceptions-arm64.c:383)
12 DemoiOS 0x00000001003933d8 throw_exception + 168
13 DemoiOS 0x00000001001cd36c System_Runtime_ExceptionServices_ExceptionDispatchInfo_Throw + 44
14 DemoiOS 0x00000001001cbfd0 System_Runtime_CompilerServices_AsyncMethodBuilderCore__ThrowAsyncm__0_object + 80
15 DemoiOS 0x0000000100099458 UIKit_UIKitSynchronizationContext__Postc__AnonStorey0__m__0 + 40
16 DemoiOS 0x00000001000c2b84 Foundation_NSAsyncActionDispatcher_Apply + 36
17 DemoiOS 0x00000001003613a4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
18 DemoiOS 0x0000000100b922c8 mono_jit_runtime_invoke (mini-runtime.c:2335)
19 DemoiOS 0x0000000100be5e98 mono_runtime_invoke (object.c:2783)
20 DemoiOS 0x0000000100b46fc4 native_to_managed_trampoline_3(objc_object_, objc_selector_, _MonoMethod
, char const, char const
) (registrar.m:95)
21 DemoiOS 0x0000000100b474e0 -__MonoMac_NSAsyncActionDispatcher xamarinApplySelector
22 Foundation 0x0000000182707e20 __NSThreadPerformPerform + 340
23 CoreFoundation 0x0000000181cfcefc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION** + 24
24 CoreFoundation 0x0000000181cfc990 CFRunLoopDoSources0 + 540
25 CoreFoundation 0x0000000181cfa690 __CFRunLoopRun + 724
26 CoreFoundation 0x0000000181c29680 CFRunLoopRunSpecific + 384
27 GraphicsServices 0x0000000183138088 GSEventRunModal + 180
28 UIKit 0x0000000186aa0d90 UIApplicationMain + 204
29 DemoiOS 0x0000000100100884 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 324
30 DemoiOS 0x000000010008f7fc UIKit_UIApplication_Main_string___intptr_intptr + 44
31 DemoiOS 0x000000010008f7bc UIKit_UIApplication_Main_string___string_string + 172
32 DemoiOS 0x0000000100078054 Demo_iOS_Application_Main_string
+ 36
33 DemoiOS 0x00000001003613a4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
34 DemoiOS 0x0000000100b922c8 mono_jit_runtime_invoke (mini-runtime.c:2335)
35 DemoiOS 0x0000000100be5e98 mono_runtime_invoke (object.c:2783)
36 DemoiOS 0x0000000100bea080 mono_runtime_exec_main (object.c:4038)
37 DemoiOS 0x0000000100c6463c xamarin_main (monotouch-main.m:404)
38 DemoiOS 0x0000000100b5ad4c main (main.arm64.m:66)
39 libdyld.dylib 0x00000001817ca8b8 start + 4

Refreshing Parent Page from Popup Screen

Hi rotorgames ,

How to refresh the Parent Page from Pop up page save&close?

In our scenario, we are editing particular (List Collection) item from Listview using pop up screen with date,picker and entry values.

We need to update/Refresh the List Collection of List view alone in Parent screen.

How to acheive this with pop up implementation.

how to pop the popup using mvvm?

Is it possible to close/pop the popup using mvvm binding? Basically I have a button in my popup and when user clicks the button, I am doing some operations and i would like to pop the popup once all finished but I couldnt figure out how to call PopupNavigation.PopAsync(); method.

One other question, If I navigate to page from popup, is it automatically popped from the modal stack or I have to pop it?

Displaying a popup page on ios 10 simulator when no on screen keyboard gives strange sizing

On ios 10 simulator the on screen keyboard is not visible (because it uses the macs keyboard)

This will also be true for any tablet with a bluetooth keyboard.

  1. open a popup page on the simulator containing an Entry control
  2. click the entry control, the popup page will resize to allow room for the on screen keyboard, but the onscreen keyboard doesnt exist as we are using the mac or bluetooth keyboard

Animation on PopPopupAsync

Hi just wondering I'm new to this project, i can get animation on push but the animation is not there when i pop, is just disappears to the next page. In my xml i have this AnimationName="MoveLeft" but how do i get animation when i pop a page? I also created a animation class that extends IPopupAnimation and set the animation of the popup page to that animation and tried this.

 public async Task Appearing(View content, PopupPage page)
    {
     page.AnimationName = AnimationsName.ScaleCenterDown;

    }

public async Task Disappearing(View content, PopupPage page)
    {
        page.AnimationName = AnimationsName.ScaleCenterUp;
    }

How can i get some set the animation for a push and pop using the animation names

Closing the popup does not work when calling from a TabbedPage Control

Hi,

I am wondering why the code to close a popup window does not work when called from a TabbedPage Control.

I have a TabbedPage Control in my application. I am able to call a popup screen from a button on one of the Tabs.

But when executing the code to close the popup window I observed that the value of PopupNavigation PopupStack Count is 0 and hence the popup window never closes.

Please let me know the reason why does the PopupStack return 0. I will provide any additional information that you need.

Thanks,

Rajesh

iOS - ListView inside of Popup no longer firing ItemSelected unless list item is long pressed

I am using a Popup with a ListView and custom ViewCell inside. This was working just fine in version 0.0.9, but since upgrading to 0.0.12 I now have to press the listview item for a few seconds and release in order for ItemSelected to fire. I used to only need to tap the list item quickly.

Again, this worked fine in 0.0.9. Not sure what changed since then. The XAML in my PCL looks like this....

<pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup">

<ListView x:Name="ListView" ItemSelected="OnSelection" >
        <ListView.ItemTemplate>
            <DataTemplate>
                    <ViewCell>
                             <StackLayout Orientation="Horizontal" >
                        <Label Text = "{Binding DisplayValue}" ></Label>
                         </StackLayout>
                    </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
</ListView>

</pages:PopupPage>

Push NavigationPage

It could be very nice if it was possible to push a NavigationPage so you can navigate inside the popup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.