AndreiMisiukevich / CardView

CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
MIT License
710 stars 114 forks source link

When swipping back on iOS the menu page opens up #379

Closed IeuanWalker closed 3 years ago

IeuanWalker commented 3 years ago

Is there a way to prevent the menu page from opening up on iOS when swiping back

AndreiMisiukevich commented 3 years ago

Hi @IeuanWalker What menu page do you mean?

IeuanWalker commented 3 years ago

@AndreiMisiukevich the master-detail/ flyout page

AndreiMisiukevich commented 3 years ago

@IeuanWalker does it work fine on Android?

AndreiMisiukevich commented 3 years ago

@IeuanWalker I cannot reproduce it with "MasterDetailPage" Do you use Shell Flyout insted? Can you build a small sample?

AndreiMisiukevich commented 3 years ago

if (parent is MasterDetailPage && (Element?.IsHorizontalOrientation ?? false)) Probably we just need to add FlyoutItem check in iOS renderer, but I do prefer to see reproduction before committing. Cuz as I said, I cannot reproduce it on old MasterDetailPage

IeuanWalker commented 3 years ago

@AndreiMisiukevic Android seems fine.

Here is a repo (slimmed down version of our app) - Repo.zip

And this is what's happening -

Kitten

Also, I couldn't find any docs to show how you could change the display index from the code behind. There are 2 arrows on that page, that when clicked should go to the next/ previous year.

AndreiMisiukevich commented 3 years ago

Also, I couldn't find any docs to show how you could change the display index from the code behind. There are 2 arrows on that page, that when clicked should go to the next/ previous year

Bind SelectedIndex to ViewModel's property and change it to desired value. Don't forget to trigger PropertyChanged event.

AndreiMisiukevich commented 3 years ago

v.2.7.4

IeuanWalker commented 3 years ago

Thanks, works like a charm :)