xamarin/Xamarin.Forms

[Bug] Cannot able to restrict the horizontal bouncing in Xamarin.Forms.iOS

オープン

#5,897 opened on 2019/04/12

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/4 :clock4:help wantedinactivep/iOS 🍎partnert/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

Hi Team We at Syncfusion develop data visualization controls for Xamarin and we have more than 90 controls spread across all platforms of Xamarin. Please refer the below link for a description about us. UserGuide: https://help.syncfusion.com/xamarin/sfdatagrid/overview FeatureTour: https://www.syncfusion.com/products/xamarin UserGuide:https://help.syncfusion.com/xamarin/sflistview/getting-started

Issue

  • We having a custom view control which is derived for the Xamarin.Platform.iOS.ScrollViewRenderer on that we trying to restrict the horizontal bouncing in Xamarin.Forms.iOS
  • But we weren't able to achieve the solution after initialized these properties also ScrollViewRenderer.Bounce = true; ScrollViewRenderer.AlwaysHorizontalBounce= false; ScrollViewRenderer.AlwaysVerticalBounce = true; ScrollViewRenderer.directionLockedEnable = true;

Steps to Reproduce

  1. Run the attached sample
  2. Just try to do bounce in horizontal
  3. I have set followed properties in the Renderer class in iOS platforms. ScrollViewRenderer.Bounce = true; ScrollViewRenderer.AlwaysHorizontalBounce= false; ScrollViewRenderer.AlwaysVerticalBounce = true; ScrollViewRenderer.directionLockedEnable = true;
  4. It will bounce in horizontall

Expected Behavior

Horizontal bouncing shouldn't to happen

Actual Behavior

Horizontal bouncing still happening after we restricted

Basic Information

  • Version with issue: 3.6.0.293080
  • Last known good version: None
  • IDE: Visual Studio Mac
  • Platform Target Frameworks:
    • iOS: IPad Pro 10.5 inch version: 11.1
  • Nuget Packages: 3.6.0.293080
  • Affected Devices: All iOS device

Screenshots

Screen Shot 2019-04-12 at 11 55 32 AM

Reproduction Link

horizontalBouncing Video.zip

XAMARINIOS_2777.zip

コントリビューターガイド