locked
How to use a ListView in a ScrollView with XLabs-PopUp-Control? RRS feed

  • Question

  • User65389 posted

    Hi all

    In my App, I have a huge search-page with various (filterable) ListViews (until over 4’000 Items) in a StackLayout and the StackLayout in a ScrollView (as the Page has to be scrollable). The ListViews were “linked” to SearchBars and were showed (.istvisible = true/false) over the focus-events of the SearchBars. This has worked without problems on all platforms. With one of the 1.3-Versions, this don’t work anymore on Android (and - I apprehend - will also not work in the feature). So.. had to search for another Implementation to bring my app to work again.

    I have found a solution now with the PopUp-Control from XLabs ?

    As there is no real documentation to the Control on the XLabs-site: https://github.com/XLabs/Xamarin-Forms-Labs/wiki and the control (until now) also don’t appears on the site under “controls”, I have documented my way to implement it (step-by-step, including installation) in my existing app n the attached .pdf.

    With this control (for me the most important of the XLabs-Controls), I was able to solve my problem on a good way with only minor changes in the code of my existing app.

    The documentation (attached .pdf) is for:

    • Users, that want to use the PopUp-control
    • Users, that want to implement a ListView in a ScrollView

    I want to thank here @Skall for his awesome work to create the control in the XLabs-project, @RaphaelSchindler for help me over the first hurdles to the control and last but not least the whole XLabs-team for they awesome work (and they work for free!).

    I hope, my documentation will helps some users to implement the PopUp-control and - specially - to implement it to use ListViews in ScrollView. I further hope, it will help to boost the XLabs-project.

    Friday, February 20, 2015 11:06 AM

All replies

  • User51906 posted

    Yay I'm mentioned on the internet :smile: Seriously, that is some nice document you created there and I think it will help a lot of people because it is so detailed.

    Friday, February 20, 2015 11:25 AM
  • User65389 posted

    @RaphaelSchindler: Thanks for your nice comment and... I hope so.
    Unfortunately there are not much detailed description in the "XF-universe", so that also newbies (like me) have the information's they need (for an easy implementation of "somewhat").

    Friday, February 20, 2015 11:33 AM
  • User51906 posted

    Yeah that's true. But XF is a relatively new Framework so it will get better. And not to forget, they have a small team and you can't put 3 of them to write detailed Dev Guides the hole day, what would be great btw^^

    Friday, February 20, 2015 11:36 AM
  • User2148 posted

    @FredyWenger , great job, well done.

    Friday, February 20, 2015 6:21 PM
  • User65389 posted

    @AlessandroCaliaro : Thanks.

    Friday, February 20, 2015 8:19 PM
  • User65389 posted

    Update: In the .pdf, in the chapter "Add XLabs to project", I describe a problem with "LocalizedStrings" (WP-Project).
    This seems to be a general problem with the windows phone platform.
    For now (maybe/hopefully the problem can be solved), the XF-dependency in the XLabs-package has to be on the same version as the installed Xamarin.Forms (in the XLabs-Package there is a dependency set to Xamarin.Forms). To prevent the problem, install the latest XLabs-NuGet and be sure, that an already installed Xamarin.Forms-package is not newer as the XF-Version under dependencies in the XLabs-Package version (you can see it in NuGet-Manager, If you select the XLabs-project). If you install a Xlabs-Package, that include a dependency to a newer XF-version (as already installed), also the newer XF-version is installed automatically with the XLabs-Package. You also can install a specific XLabs-version with the NuGet-console( e.g. with dependency to an older XF-version) under this Link : https://nuget.org/packages/XLabs.Forms/

    Monday, February 23, 2015 1:23 PM
  • User91562 posted

    Good job

    Monday, February 23, 2015 2:02 PM
  • User65389 posted

    As the attachment - for whatever reason - was lost, I post a new link to the .pdf:

    matrixguide.ch/Datenablage/diverses/HowtoImplementXLabsPopUp_Control.pdf

    Tuesday, March 17, 2015 9:01 AM
  • User65389 posted

    @Skall:

    I have some strange problems with the PopUp-control in Windows Phone (8.0) and XF 1.4.2-pre-2 (they also exits in 1.4.1) and newest XLabs. I use the PopUp's to show some ListViews on the PopUp’s (from a ScrollView).

    I have various PopUp’s with ListViews on my search-page. I can show one after the other without problems…

    But… as soon as I show the same PopUp a second time, I have hard crashes:

    System.ArgumentException 
    An exeption (first chance) of type "System.ArgumentException" has occured in System.Windows.ni.dll
    Value does not fall within the expected range.
    

    and sometimes a

    null reference exception by .ShowPopup (object reference is not set to an instance of an object)

    Unfortunately I am not able to find out the reason by debugging...

    While it works without problems in iOS and Android.

    I’m not sure, if the problem comes from the Popup-control or from XF. Do you know something about…?

    Thanks for a replay (so that I know, where to search further…)

    Tuesday, April 7, 2015 1:13 PM
  • User12403 posted

    Would you have a sample project to share?

    Tuesday, April 7, 2015 1:19 PM
  • User65389 posted

    @Skall:
    Thanks a lot for taking the time :smile: I have sent you a PM with a download-link to a short-description and to the app...
    Please let me know, if you need more...

    Tuesday, April 7, 2015 2:18 PM
  • User12403 posted

    @FredyWenger this one smells a little like Forms WP implementation bug. This is the stack trace I get from your application:

    System.NullReferenceException occurred
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=Xamarin.Forms.Platform.WP8
      StackTrace:
           at Xamarin.Forms.Platform.WinPhone.ListViewRenderer.UpdateNativeWidget()
           at Xamarin.Forms.Platform.WinPhone.VisualElementRenderer`2.HandleTrackerUpdated(Object sender, EventArgs e)
           at Xamarin.Forms.Platform.WinPhone.VisualElementTracker.OnUpdated()
           at Xamarin.Forms.Platform.WinPhone.VisualElementTracker`2.UpdateNativeControl()
           at Xamarin.Forms.Platform.WinPhone.VisualElementTracker`2.set_Child(FrameworkElement value)
           at Xamarin.Forms.Platform.WinPhone.VisualElementRenderer`2.SetNativeControl(TNativeElement element)
           at Xamarin.Forms.Platform.WinPhone.ListViewRenderer.OnElementChanged(ElementChangedEventArgs`1 e)
           at Xamarin.Forms.Platform.WinPhone.VisualElementRenderer`2.SetElement(VisualElement element)
           at Xamarin.Forms.Platform.WinPhone.RendererFactory.GetRenderer(VisualElement view)
           at Xamarin.Forms.Platform.WinPhone.VisualElementPackager.HandleChildAdded(Object sender, ElementEventArgs e)
           at Xamarin.Forms.Platform.WinPhone.VisualElementPackager.Load()
           at Xamarin.Forms.Platform.WinPhone.VisualElementRenderer`2.SetElement(VisualElement element)
           at Xamarin.Forms.Platform.WinPhone.RendererFactory.GetRenderer(VisualElement view)
           at Xamarin.Forms.Platform.WinPhone.VisualElementPackager.HandleChildAdded(Object sender, ElementEventArgs e)
           at Xamarin.Forms.Element.OnChildAdded(Element child)
           at Xamarin.Forms.Layout.OnInternalAdded(View view)
           at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
           at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
           at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
           at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
           at System.Collections.ObjectModel.Collection`1.Add(T item)
           at Xamarin.Forms.ObservableWrapper`2.Add(TRestrict item)
           at Xamarin.Forms.RelativeLayout.RelativeElementCollection.Add(View view, Constraint xConstraint, Constraint yConstraint, Constraint widthConstraint, Constraint heightConstraint)
           at XLabs.Forms.Controls.PopupLayout.ShowPopup(View popupView, Constraint xConstraint, Constraint yConstraint, Constraint widthConstraint, Constraint heightConstraint)
      InnerException: 
    
    Saturday, April 11, 2015 12:16 AM
  • User65389 posted

    @Skall: Thanks for the investigation and your feedback.
    So I know, that you can't do anything and the problem is not the control :wink:
    So... let's hope, that the problem in the WP-Implementation will be solved soon...
    Thanks and have a nice week-end :smile:

    Saturday, April 11, 2015 7:56 PM
  • User12403 posted

    @FredyWenger if you can create a simple example of the bug it would be good to file a bug report: https://bugzilla.xamarin.com/

    Sunday, April 12, 2015 1:12 AM
  • User120789 posted

    Thanks @FredyWenger

    Friday, May 1, 2015 2:14 AM
  • User12403 posted

    @FredyWenger I changed the PopupLayout implementation to ContentView from RelativeLayout in the latest release. The reason was that the intent of the control wasn't clear (my fault) and I caught one of my co-workers putting the actual layout into the Children of the control instead of the Content. It would be good if you tested the latest version of the control for any problematic behaviour. I did my own tests but since it seems you are using it in quite a few different layouts it would be nice to get your feedback. If there are any problems I will have to figure out the best option to go forward.

    Friday, May 1, 2015 11:09 PM
  • User65389 posted

    @Skall: Thanks for your posting here. I will do so (test it) next week, as I'm in holiday now on the maledives, where I need the :sunglasses: (:smile:)

    Saturday, May 2, 2015 1:56 AM
  • User65389 posted

    @Skall:

    Just back from holiday today…
    To remember:
    The only problem I had, was that my app was not usable with the PopUp on WP (while it have worked fine on iOS and Android).

    Installed now the latest XLabs (2.0.5603) - I don't see a newer version (also not on NuGet).

    On iOS, I don't see any difference until now...
    Unfortunately also not on WP (app still crashes by second load of a PopUp).

    I changed the PopupLayout implementation to ContentView from RelativeLayout in the latest release. The reason was that the intent of the control wasn't clear (my fault) and I caught one of my co-workers putting the actual layout into the Children of the control instead of the Content.

    If I understand you correct, the PopUpLayout now should be based on ContentView not RelativeLayout..?
    This don't seems to be so in my App (still RelativeLayout) :confused:
    Do you have pushed the new version to NuGet or what are I missing?

    Details see screenshots in attached .pdf.
    Thanks for a reply (before I test further...).

    Wednesday, May 6, 2015 12:13 PM
  • User12403 posted

    Installed 2.0.5603 from NuGet to make sure I didn't miss anything. This is what I see in Object Browser so yes, it is a ContentView in the release. There is still a RelativeLayout underneath and the functionality should be identical minus the RelativeLayout features being public.

    public class PopupLayout : Xamarin.Forms.ContentView
        Member of XLabs.Forms.Controls
    
    Wednesday, May 6, 2015 2:07 PM
  • User65389 posted

    @Skall: Thanks for your replay.
    As I wrote, I have updated all packages to 2.0.5603 and nothing is missing... So... until now, I can't see any difference (before testing it on Android) and unfortunately am not able to use the PL in WP (I hoped that the crash in WP is solved with the change what is not the case) .
    I have sent you my app some time ago and you wrote:

    this one smells a little like Forms WP implementation bug

    I also have informed Jason about the problem - unfortunately without any answer...
    I'm still on XF 1.4.2.6355 (as I don't have seen any information's to newer releases that points to the problem).

    Any idea how to solve the WP-crash?

    Thanks

    Wednesday, May 6, 2015 2:21 PM
  • User12403 posted

    Did you create a bug report on Bugzilla? Unfortunately the Xamarin Forms bugs seem to sit there for a long time without fixes but at least it would be there.

    Wednesday, May 6, 2015 2:43 PM
  • User65389 posted

    Not yet (I have filled various other bugs, most still have state "New"). Tried to update to the latest XF-Version (pre-2) to see if the bug still exits... Now I'm not able to compile anymore (at least the WP-Project).

    Die Xamarin.Forms.Build.Tasks.XamlCTask-Aufgabe konnte nicht aus der M:\SW\VS2013\Xamarin\MatrixGuide\packages\Xamarin.Forms.1.4.3.6358-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Build.Tasks.dll-Assembly geladen werden. Stellen Sie sicher, dass die -Deklaration korrekt ist, die Assembly und alle zugehörigen Abhängigkeiten verfügbar sind und die Aufgabe eine öffentliche Klasse enthält, die Microsoft.Build.Framework.ITask implementiert. M:\SW\VS2013\Xamarin\MatrixGuide\packages\Xamarin.Forms.1.4.3.6358-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets 56 3 MatrixGuide.WinPhone

    Just annoying... :disappointed:

    Wednesday, May 6, 2015 2:54 PM
  • User65389 posted

    @Skall (and all other readers of this thread): Update to the bug:
    I have searched Bugzilla for a similar bug, found one and add a comment. Today, the state was changed to "Major" and "In Progress" Link:
    https://bugzilla.xamarin.com/show_bug.cgi?id=29229

    So... let's hope that it is the same bug and that it will be solved in the next update :wink:

    Friday, May 22, 2015 8:39 AM
  • User340 posted

    @FredyWenger How do you make it not transparent? it always shows a transparent popup.

    Never mind, I simply set background color to Black for the layout in my popup.

    Tuesday, May 26, 2015 2:12 PM
  • User65389 posted

    I set the page-content to isvisible = false (as long as the PopUp is showed) and the isvisible = true by close of the PopUp

    Tuesday, May 26, 2015 2:34 PM
  • User65389 posted

    @Skall:
    I actually use (various) PopUp's on my search-page (what works like a charm (except the WP-Bug mentioned above)).
    The search-page is very complex (StackLayout -> ScrollView -> StackLayout -> Labels, Buttons, PopUps). As XF don't have "real modal forms" (code don't stop, when a "modal" page is called), I had to implement the query of the data via messaging-center. I have strange (and rarely, not to comprehend) problems with that implementation (which I investigate just now and hope to find out and solve the problem). If I'm not able to solve the problem, a possible workaround can be, to put also the whole search-page on a PopUp and remove the messaging-center-code.

    The logic then would be: - User taps on a search-icon - the whole (complex) search-page (see above) is showed on a PopUp, that contains Buttons that call further PopUps

    Question: - Should this be possible or do you see some problems?

    Thanks for an answer.

    Thursday, June 4, 2015 10:48 AM
  • User65389 posted

    @Skall (and all other readers of this thread):
    I have updated to 1.4.3-pre3 today:
    The problem with the crash on WP seems to be gone (my WP App don't crash anymore by select an item on a ListView on a PopUp the second time - so it seems this was a XF-bug) :smile:
    Unfortunately I therefore have found a new "killer-bug" to iOS (Phone) in Pre-3 (which is relatively similar to the "old" WP-bug).
    If the new bug is not solved (very) soon, I have to downgrade to Pre-2 again (as iOS is more important for me as WP). You can find the details in the Pre-3-thread: https://forums.xamarin.com/discussion/43674/xamarin-forms-1-4-3-pre3-released#latest

    @SKall #2:
    May I have an answer to my question above ("call a PopUp from a PopUp") please ?
    Thanks

    Wednesday, June 17, 2015 4:57 PM
  • User65389 posted

    Answer from Skall in another thread:

    I can't think of a restriction in the PopupLayout itself. Nesting them over and over would most likely end up in Android StackOverflow at some point (and in different points for different devices to make matters worse) but a few inheritances should be fine.

    Tuesday, June 23, 2015 8:06 PM
  • User19820 posted

    @FredyWenger do you have a place with all these documents you did ? maybe a github repository with PDF files and attached sample code (where necessary)?

    Thursday, June 25, 2015 9:06 PM
  • User65389 posted

    @AndreiNitescu:

    I have done, what I can to make the documentations "public": If you click my profile, you can see links to (almost all) of my documentations.

    I further have started a "community documentation thread" here:
    http://forums.xamarin.com/discussion/43458/the-community-documentation-thread#latest (the target is, that also others add their documentations)

    As the "original documentation thread" don't is pinned yet ("visible on first page(s) only when a new docu is added for a few hours), I further have posted a meta-thread here: http://forums.xamarin.com/discussion/43560/meta-thread-to-the-community-documentation-thread#latest The meta-thread contains a link to the real thread and is thought, to add comments what pops it up and make it "visible" for a few hours (what is important especially for new users).

    It's a pity, that - especially my starter-guide:
    http://forums.xamarin.com/discussion/36821/quickstart-guide-to-start-developing-with-xamarin-forms#latest - don't is seen by the new users, as it contains a lot of information's, that - all together - should help new users to save day's, use the forum correct from start and so on...(and also would relieve the forum)

    I don't use github, as my documentation's don't contain a lot of code. For larger documentations, I create .pdf's and store them on one of our own servers, as in history attached-documentation's has become deleted (for whatever reason).
    Some of them also have found the way to other sites (e.g. blogs) on the internet... I'm a bit disappointed about the echo, especially to the "community docu thread" and the meta-thread.
    Almost not postings / reactions in the meta-thread, only a few other users have added documentations to the docu thread (if enough documentations are added, I will ask Xamarin for pin the thread on the first page).
    So.. feel free to post a message o the meta-thread :wink:

    Friday, June 26, 2015 7:48 AM
  • User19820 posted

    no, nothing is better than GitHub :) on GitHub people can watch your projects (they get notified when stuff is updated) so much better also, they can place comments, give suggestions in the Issues section and you can mark them as complete, etc

    Friday, June 26, 2015 7:49 AM
  • User65389 posted

    This is correct, if you post projects / solutions (what is not my intention) ... My documentation's normally don't contain a full project (example).
    Does it really make sense to - e.g. - post my starter guide (.pdf) on GitHub? :smirk:

    Friday, June 26, 2015 8:02 AM
  • User19820 posted

    I've seen big projects on GitHub keeping documentation there.

    Friday, June 26, 2015 8:04 AM
  • User136477 posted

    Thank you @FredyWenger

    It was good article :smile:

    Thursday, October 15, 2015 12:41 PM
  • User65389 posted

    @Sivamuralidhar:
    You're welcome :smile:

    B.t.w.: You can find more information's, if you click my profile (Avatar or name) and especially this link is maybe interesting (as it contains various useful information's): http://forums.xamarin.com/discussion/36821/quickstart-guide-to-start-developing-with-xamarin-forms#latest

    Cheers :sunglasses:

    Thursday, October 15, 2015 12:53 PM
  • User2148 posted

    @FredyWenger where is the last version of your Popup doc? Do exist some example codes?

    Friday, January 15, 2016 7:11 PM
  • User65389 posted

    @AlessandroCaliaro: On the first page of this thread. I have no additional sample code, but the .pdf contains example-code.

    Friday, January 15, 2016 9:21 PM
  • User2148 posted

    Thanks I have seen, test and works. Only a question about the clickable stacklayout under the popup. You have set IsVisible =true because you have not been able to add a second layout with transparent / semitransparent property. Have you found a way to implement this ?

    Friday, January 15, 2016 9:41 PM
  • User65389 posted

    @AlessandroCaliaro: I'm at home now (no access to my project). Not sure, If I understand your question correct.... I have in mind, that I have set the "main-stacklayout" to visible = false, when I show the popup and then set it to true again, when the I close the popup (so that only the popup is visible on the screen, when it is shown). Let me know, if this was not the question or if I should see im my code for you to be sure (but... next week :smirk)

    Friday, January 15, 2016 9:51 PM
  • User2148 posted

    yes @FredyWenger it's correct. on the pdf you have written:

    Another solution - maybe - can be to add an additional element to the PopUp, with the size of the whole page and transparent / semitransparent background...

    but you have not been able to do this. I am interested in this solution... Have you found a workaround ?

    Friday, January 15, 2016 11:11 PM
  • User65389 posted

    @AlessandroCaliaro: I don't have investigated this (maybe other solution) more in detail as my implemented solution (hide the main-SL, so that it don't receive tap's) works. Have a nice weekend...

    Saturday, January 16, 2016 5:24 PM
  • User2148 posted

    Thank @FredyWenger

    Saturday, January 16, 2016 8:44 PM
  • User176749 posted

    Is that already outdated? It looks like there is already autocomplete list from xlabs. by popup here is meant autocomplete list right?

    Sunday, January 17, 2016 7:25 PM
  • User65389 posted

    @batmac: No this has nothing to do with an "autocomplete list". The base problem is, that there are problems, to show a ListView in a ScrollView with XF (as both elements are scrollable). This thread shows, how to show an "scrolling" ListView in a (scrolling) ScrollView with a PopUp (from XLabs).

    Sunday, January 17, 2016 7:46 PM
  • User176749 posted

    Is it possible to implement this with MVVM? I tried evertyhing possible but cant figure out and i couldnt find any example.

    Monday, January 25, 2016 12:07 AM
  • User176749 posted

    I had to change that to: PopUpLayout.Content = GanzeSeite; Content = _PopUpLayout; So that the _PopUpLayout now is the top-layout / top View and the methods can be accessed over the _PopUpLayout-object, e.g.: _PopUpLayout.ShowPopUp // show a Popup _PopUpLayout.IsPopuiActive // check, if a Popup is active _PopUpLayout.DismissPopup // close a shown popup Now, we can define the actual Popup himself, e.g.: var PopUp = new StackLayout { WidthRequest = 400, // Important, the Popup hast to have a size to be showed HeightRequest = 400, BackgroundColor = Color.Black, // for Android and WP Orientation = StackOrientation.Vertical, Children = { PLZOrtLabel, // my Label on top SearchBarPLZOrt, // my SearchBar to the ListView LVPLZOrt, // The Listview (all Cities/Zip-Codes in the Datasurce -> List) } };

    If I understand correctly, var PopUp = new StackLayout this popup part can be done in the code only? or can I achieve it also on xaml? because If I add the stacklayout definition in the xaml, it is displayed not only in the popup.

    Monday, January 25, 2016 12:33 AM
  • User65389 posted

    @batmaci As I don't work with XAML (only with code), I can't say, if it is possible... But... I would do it (apply the PopUp) in code (should not be a great project)

    Monday, January 25, 2016 10:05 PM
  • User176749 posted

    For the autocomplete list, did you use xlabs autocompleteview? if yes, how did you achieve it? there is website is awful, many code samples arent even tested and badly written. danke für deine Hilfe :)

    Monday, February 1, 2016 11:30 PM
  • User65389 posted

    @batmaci: No, I don't have used the xlabs autocompleteview (I don't use autocomplete list's -> I use list's that are queried over a web-service to select some items to do a search laeter with the selected item). My problem was, to show a (scrolling) ListView in a (scrolling) ScrollView, what is not supported in XF. Therefore the PopUp is a good solution. And yes, their documentation is not very good (what is a pity). Especially the PopUp control is still not documented yet (even not showed under "Available controls" ) Therefore, I have posted this thread and als wrote the example code to how to use it and how to install and use the Xlabs stuff in common.

    Tuesday, February 2, 2016 8:38 AM
  • User176749 posted

    I have made this working fine on Androd and now I am trying to do the same on WP8.1 one but I am getting exception as below. Did you try it on WP8.1? Do you know how to resolve this issue?

    System.ArgumentException was unhandled by user code
      HResult=-2147024809
      Message=Value does not fall within the expected range.
      Source=Windows
      StackTrace:
           at Windows.UI.Xaml.Controls.Border.put_Child(UIElement value)
           at Xamarin.Forms.Platform.WinRT.FrameRenderer.PackChild()
           at Xamarin.Forms.Platform.WinRT.FrameRenderer.OnElementChanged(ElementChangedEventArgs`1 e)
           at Xamarin.Forms.Platform.WinRT.VisualElementRenderer`2.SetElement(VisualElement element)
           at Xamarin.Forms.Platform.WinRT.Platform.CreateRenderer(VisualElement element)
           at Xamarin.Forms.Platform.WinRT.VisualElementPackager.OnChildAdded(Object sender, ElementEventArgs e)
           at Xamarin.Forms.Element.OnChildAdded(Element child)
           at Xamarin.Forms.VisualElement.OnChildAdded(Element child)
           at Xamarin.Forms.Layout`1.OnChildAdded(Element child)
           at Xamarin.Forms.Layout.OnInternalAdded(View view)
           at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
           at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
           at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
           at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
           at System.Collections.ObjectModel.Collection`1.Add(T item)
           at Xamarin.Forms.ObservableWrapper`2.Add(TRestrict item)
           at Xamarin.Forms.RelativeLayout.RelativeElementCollection.Add(View view, Constraint xConstraint, Constraint yConstraint, Constraint widthConstraint, Constraint heightConstraint)
           at XLabs.Forms.Controls.PopupLayout.ShowPopup(View popupView, Constraint xConstraint, Constraint yConstraint, Constraint widthConstraint, Constraint heightConstraint)
           at myApp.AppTemplatesPage.newAppClick(Object sender, EventArgs e)
           at Xamarin.Forms.Button.Xamarin.Forms.IButtonController.SendClicked()
           at Xamarin.Forms.Platform.WinRT.ButtonRenderer.OnButtonClick(Object sender, RoutedEventArgs e)
      InnerException: 
    
    Monday, March 7, 2016 12:37 AM
  • User176749 posted

    when I use frame as popup, It was crashing for me. I saw in your document that use stacklayout instead of frame in WP. It doesnt crash with SL but I have entry and button inside my popup and they are not usable. I cant enter any text into entry and I cant click the button. This is no problem on Android. I tried relativelayout and absolutelayout. they all had same issue. Do you know anything about this?

    Monday, March 7, 2016 1:45 AM
  • User65389 posted

    @batmaci: No, I don't know anything about this. As I wrote, I had a problem with the frame in WP (but you have seen this already). I also have a button and an Entry on my SL and it works... But my app is based on something around Forms 1.4.4 and as you know, you have to fear new bugs with every new .Forms release... So... I can't really help you...

    Monday, March 7, 2016 7:51 AM
  • User159521 posted

    this is not the first time i use popupLayout from XLabs. However today.... i am not able to make it work.

    ShowPopup Throws an exception : NullReference in Constraint.

    i have no costraints.... i have no relativeLayout ?

    can you help me?

    Wednesday, March 9, 2016 12:32 PM
  • User2148 posted

    Maybe you have upgraded XF and now it does not work?

    Wednesday, March 9, 2016 1:25 PM
  • User198768 posted

    When button to show popup is clicked second time...the popup is not shown and throwing error in PopUpLayout.DismissPopup(); (Error: Cannot change ObservableCollection during a CollectionChanged Event) and causing app to crash....Is this a bug to be fixed in XF?

    Also I'm using the latest Nugget package of Xlabs.Forms. So anyone faced this problem before? If so what is the workaround??

    Friday, March 11, 2016 8:07 AM
  • User198768 posted

    @FredyWenger Thanks for your Documentation, but I'm facing app crash when popup has to be shown second time. Also I'm not using Frames but normal stacklayout to show a listview inside popup and is crashing on both Android and iOS platforms.

    I'm attaching a screenshot of code and it is crashing in _PopUpLayout.DismissPopup().

    Friday, March 11, 2016 8:18 AM
  • User65389 posted

    @XingHuan I'm still on .forms 1.4.4x (as normally every new version to XF breaks existing apps)

    But you use the ItemSelected-event, I use the ItemTapped-event. I know that I had some problems with the ItemSelected-event in the past. => So I would first try to use the temTapped-event instead of the ItemSelected-event

    Friday, March 11, 2016 8:43 AM
  • User198768 posted

    @FredyWenger Using ItemTapped-event instead resolved the issue. Thanks a ton! :smile:

    Friday, March 11, 2016 9:30 AM
  • User65389 posted

    @XingHuan: You're welcome.. And... you should like postings that have helped you...

    Friday, March 11, 2016 9:34 AM
  • User159521 posted

    i made the mistake to update to XF 2.x because i needed some fixes . However, meanwhile, i've found this plugin for popups.

    I think it's nice looking and more OOP oriented.

    https://github.com/rotorgames/Rg.Plugins.Popup

    Friday, March 11, 2016 9:58 AM
  • User65389 posted

    @alessandrosuppiej Thanks für your posting here. Unfortunately, the plugin don't seems to work with WP yet ("coming soon"), so it can't be used from XF-uses that also target WP. Do you have implemented it and use it productive without any problem with the latest (2.1) XF-Version?

    Friday, March 11, 2016 10:10 AM
  • User159521 posted

    @FredyWenger said:

    Do you have implemented it and use it productive without any problem with the latest (2.1) XF-Version?

    Yes i'm using 2.1.0.6526. it's so smooth and nice looking!

    Friday, March 11, 2016 10:54 AM
  • User65389 posted

    @alessandrosuppiej Thanks for your feedback... so it may be an alternate to the XLabs PopUp as soon as also WP-support is implemented...

    Friday, March 11, 2016 11:00 AM
  • User176749 posted

    @FredyWenger said: @batmaci: No, I don't know anything about this. As I wrote, I had a problem with the frame in WP (but you have seen this already). I also have a button and an Entry on my SL and it works... But my app is based on something around Forms 1.4.4 and as you know, you have to fear new bugs with every new .Forms release... So... I can't really help you...

    apparently looks like problem with the newer version of XF as people reported for ISO and WP here. It is totally frozen and not possible to click anything inside the popup.

    Saturday, March 12, 2016 4:11 PM
  • User65389 posted

    @batmaci: So... it seems to be as I thought (new bugs in XF :disappointed:)
    I hope the new bugs will be fixed until I also have to update to a newer version (of cause a new OS version of iOS / Android / WP, that is not supported from my "old" 1.4.x XF version).

    Saturday, March 12, 2016 4:23 PM
  • User176749 posted

    @FredyWenger said: @alessandrosuppiej Thanks für your posting here. Unfortunately, the plugin don't seems to work with WP yet ("coming soon"), so it can't be used from XF-uses that also target WP. Do you have implemented it and use it productive without any problem with the latest (2.1) XF-Version?

    I have just implemented this popup plugin with latest XF version and removed Xlabs completely. Logic behind is different but it is much easier and faster to implement. Output is also tidier and looks much better. It works great on Android and IOS. for WP and Universal I need now another solution, probably a separate solution. WP should have it is own popup(not in XF), right? any suggestion for that will be appreciated.

    Monday, March 14, 2016 3:04 PM
  • User65389 posted

    @batmaci : Thanks for your posting here...

    WP should have it is own popup(not in XF), right?

    That, you should ask the owner of the package (coming soon... is ... when? :smirk:)

    Monday, March 14, 2016 3:53 PM
  • User176749 posted

    @FredyWenger said: @batmaci : Thanks for your posting here...

    WP should have it is own popup(not in XF), right?

    That, you should ask the owner of the package (coming soon... is ... when? :smirk:)

    I meant that obviously there is no good solution for WPF and UWP in XF neither with Xlabs (for latest XF version) nor with this plugin. Therefore I thought to write native popup page right inside the WP project until they release something working for WP for XF as well. I need to see how difficult can it be.

    Monday, March 14, 2016 4:03 PM
  • User166393 posted

    I dont like the popup control in xlabs popup . There is a discussion where i have uploaded my own popup. It works for android

    Tuesday, March 15, 2016 9:36 AM
  • User166393 posted

    I have made my own radiobutton too with NControl. No need for XLabs radio control.

    Tuesday, March 15, 2016 9:37 AM
  • User136779 posted

    @FredyWenger

    https://github.com/rotorgames/Rg.Plugins.Popup

    Prerelease (1.0.0-pre1) already supports WinPhone and UWP.

    I would be glad if you accept participating in the beta testing.

    Thursday, May 5, 2016 6:13 PM
  • User65389 posted

    @KirillLyubimov.5134 Thanks for your proposal. I have my app (based on .forms 1.4x) already in all stores since a few months fortunately. For a new customer-project (that I have to start in the near time), I have decided to use only Xamarin.Android (of cause the many, many bugs and especially new bugs after every release, what ist not acceptable for real busines projects). I think, I also should be able to use your plugin in plain Xamarin.Android without problems? If yes, I want to give it a try, as soon as I have the need for a PopUp in the new Android app.

    Friday, May 6, 2016 6:52 AM
  • User136779 posted

    @FredyWenger The plugin works only with Xamarin Forms. The plugin will not install if not installed Xamarin Forms.

    Friday, May 6, 2016 9:56 AM
  • User65389 posted

    @KirillLyubimov.5134 Thanks for the information... So... I'm - unfortunately - not able to do a beta-test yet (maybe later, if I have to implement some changes in my already existing .forms app) :sunglasses:

    Friday, May 6, 2016 10:05 AM
  • User207894 posted

    @FredyWenger Can you provide a better example for Popup.I am bit confused with this lines from pdf

    Content = GanzeSeite; _PopUpLayout.Content = GanzeSeite; Content = _PopUpLayout;

    According to my understanding, you have created a stack layout that will be shown in the popup and then assign it to the popup layout content, then you have assigned the popup to the content of the content page. Am I right??

    According to my understanding, I have implemented it , but when i try to navigate to the page where popup is implemented it directly show popup content instead of that page.Plz help!!

    Saturday, May 14, 2016 10:56 AM
  • User2148 posted

    Use this

    https://github.com/rotorgames/Rg.Plugins.Popup

    Saturday, May 14, 2016 12:40 PM
  • User65389 posted

    @@parth7676: The _PopUpLayout has to be the top layout.

    This code-lines only do exactly this (nothing magic here....) "GanzeSeite" holds the whole (in code generated) content. The content to the _PopUpLayout is set to the GanzeSeite (that holds the whole content) The Content of the page ist set to PopUpLayout So the _PopUpLayout becomes the top layout and holds GanzeSeite (with the whole content)

    Hope this explains and helps...

    Saturday, May 14, 2016 2:22 PM
  • User198903 posted

    Fredy Wenger, thank you for your nice document, it helped me a lot to start with the popuplayout. I got the popup show up correctly in my app, but the control in popuplayout are not clickable at all in IOS, but Android version works fine.

    It doesn't matter whether I hide the original content in the page or not, click the button on popuplayout nothing happened. But in android, click the button will show a alert as I expected.

    I used XMAL and the contents of the popup is created in another xaml as StackLayout. I am using Xamarin.Forms 2.1.0.6526 and XLabs.Forms 2.0.5782

    Do I miss anything here?

    Thank you!

    Saturday, May 21, 2016 11:50 PM
  • User65389 posted

    @BreadAvei:

    My app is based on .forms 1.4.x (I don't have updated it in the last time as there was no need to do it). I also don't work with xaml. But... have you took care, that the PopUp-Layout is the top layout...? The code that does this:

    Content = GanzeSeite;
     _PopUpLayout.Content = GanzeSeite;
     Content = _PopUpLayout;
    
    Sunday, May 22, 2016 3:53 PM
  • User198903 posted

    @FredyWenger

    Yes, the popup layout is the top layout, someone was saying that the popup layout doesn't work on IOS. Mine works on Android.

    Monday, May 23, 2016 5:35 AM
  • User284483 posted

    I am Looking Popup after Login and in there some buttons please help me

    Friday, December 16, 2016 11:34 AM
  • User248549 posted

    @FredyWenger said: @Skall (and all other readers of this thread): Update to the bug:
    I have searched Bugzilla for a similar bug, found one and add a comment. Today, the state was changed to "Major" and "In Progress" Link:
    https://bugzilla.xamarin.com/show_bug.cgi?id=29229

    So... let's hope that it is the same bug and that it will be solved in the next update :wink:

    hi @Fredy can u share me sample code please

    Wednesday, December 21, 2016 12:38 PM
  • User248549 posted

    HI, @FredyWenger can you share me sample code please.

    Wednesday, December 21, 2016 12:39 PM
  • User65389 posted

    @NeelamPrajapati: The bug has been fixed an longer time ago. In the first page of this thread, you can find a link to a .pdf with the description.

    Wednesday, December 21, 2016 2:29 PM
  • User321376 posted

    How to create the list that expands and shows the lots of informatiopn on same page under selected items

    Friday, June 2, 2017 12:16 PM
  • User364073 posted

    @FredyWenger, Hi ! I have a problem with my ScheduleWeekView Control. Please see the article below and tell us your opinion about it: https://forums.xamarin.com/discussion/comment/322714#Comment_322714

    Thursday, March 8, 2018 11:55 AM