How Disable Gestures (swipe l/r) of CarouselPage?

匿名 (未验证) 提交于 2019-12-03 10:24:21

问题:

I want to use CarouselPage to have the right-to-left transition animation. Could you please help me disable getsures in CarouselPage? I can't do that.

Thanks.

回答1:

Setting InputTransparent of the CarouselPage will do the thing:

public App () {     MainPage = new CarouselPage{         InputTransparent = true, //This!         Children = {             new ContentPage{                 Content = new Label{                     Text = "Page 1",                     HorizontalOptions = LayoutOptions.CenterAndExpand,                     VerticalOptions = LayoutOptions.CenterAndExpand,                 }             },             new ContentPage{                 Content = new Label{                     Text = "Page 2",                     HorizontalOptions = LayoutOptions.CenterAndExpand,                     VerticalOptions = LayoutOptions.CenterAndExpand,                 }             }         }     }; } 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!