collection view giving issue in iOS (Xamarin forms) - xamarin.forms

I am working on Xamarin forms app. There are two different views and I need to show and hide these views according to particular conditions (Using isvisible=true/false).
I am getting issue in iOS -
If invisible is true for 1st view and false for 2nd view then 1st view is not visible, one thing I have noticed 2nd view contains collection view and if that collection view removed then it works properly (collection view is only in 2nd view).
Above issue is only in iOS not in android,
Can anyone please help?

Related

Entry and Picker in collection view header in Xamarin forms

I have used entry and Picker in collection view header and it works fine in android.But in ios when I click on the entry or picker the page is getting down.Is there anyway to resolve this!?
I have issue similar to https://gitub.com/xamarin/Xamarin.Forms/issues/9879#issuecomment-609627755

Xamarin.Froms MVVMCross loading modal view

My team have been struggling with this for few days.
We are porting a swift app over to Xamarin.Forms using MVVMCross
(This is our first play with Xamarin.Forms)
Our app consists of 4 main viewcontrollers and we have numerous modals views that appear as a 'FormSheet' (so they appear NOT full screen and can be sized). In swift we embed each modal view within a navigation controller.
We are struggling how to do this behaviour in Xamarin.Forms
We have created our main view controllers and can switch using
await _navigationService.Navigate<...ViewModel>();
What we can't do is either load the modal view (so they appear as modal view) or load the view in a new navigation window (again as a modal view)
In order to open a page as a modal you must add the attribute to forms page on code behind
[MvxModalPresentation(WrapInNavigationPage = false)]
public partial class YourModalView : MvxContentPage<YourModalViewModel>
I would highly recommend you to check the presentation attributes from MvvmCross for Xamarin.Forms

Respond to split-screen changes in Xamarin.Forms

In my Xamarin.Forms app, I have a MasterDetailPage with MasterBehavior set to Split when the device Idiom is Tablet. That is, I always want master page to be displayed.
The exception is during multitasking. For example, on iOS, if the user enters Split View, then I want the app to behave like it's on a phone, with no split view, but instead just a master or detail page displayed, and the proper navigation controls to move between them.
It seems like MasterDetailPage wants to help me with this. When I drag up another app to enter Split View on iOS, my app no longer shows the master page. However, the detail page that remains has no navigation control to return to the master.
What is the proper way to detect the mode change and dynamically adjust the navigation in Xamarin.Forms when your app enters and leaves Split View on iOS or split-screen mode on Android?

ArgumentOutOfRangeException on Android Nougat when changing Grouped ItemSource

The first ItemSource has one section and the ItemSource that is switched to has two sections. It seems like Xamarin.Forms is looking for the section at index 1 in the first ItemSource (the one with only one section) and fails. See bugzilla for more information and reproduction project.
Only occurs on Android Nougat. I can post code if necessary but it's all in bugzilla already.
So it turns out that this was related to having accessibility services turned on. This forced the ListView to try to access items before the internal items of the adapter were updated, resulting in the ArgumentOutOfRange exception.

How to increase list View's Separator length in Xamarin forms iOS?

I want to increase list View's Separator length(spacing between two cells).
I am not getting how can I do it in xamarin forms by using custom renderer and I am looking for iOS only.
I want to create card view in iOS (by using xamarin forms) just like facebook application.
I Implemented it with frame control.
1.I created one customized cell in List View (Using ViewCell).
Then Added frame in it.
2.Removed Separator in a List View by Using Custom Renderer.
Use HasUnevenRows="True" in your ListView and it should adapt to your item height.

Resources