Implemented scrolling disabling for ScrollView via ScrollOrientation.Neither (#3113)
authorAlexey Maltsev <axel.user.perm@gmail.com>
Thu, 8 Aug 2019 12:22:26 +0000 (17:22 +0500)
committerGerald Versluis <gerald.versluis@microsoft.com>
Thu, 8 Aug 2019 12:22:26 +0000 (14:22 +0200)
commitd4efcff538e9a0eac1e873c7f36b6f6f0218ecb3
treef82529a86e47ad7a71f05b9df812ae7d9f9759b9
parent15f1ccbbb433f13d6cb738d9cac0592231966824
Implemented scrolling disabling for ScrollView via ScrollOrientation.Neither (#3113)

* Added Neither option for ScrollOrientation to disable scrolling

Added UI-test for issue #2680

Made test more representative

Fixed comment it ui-test for #2680

Added tests for changing orientation in real-time

Updated unit test for asserting ScrollOrientation.Neither

Added test that content size didn't change when ScrollOrientation.Neither

Fixed issue when scroll event was fired if ScrollOrientation is Neither

* Renamed properties at test

* Fixed UI test

* Codestyle fixes
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2680ScrollView.cs [new file with mode: 0644]
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
Xamarin.Forms.Core.UnitTests/ScrollViewUnitTests.cs
Xamarin.Forms.Core/ScrollOrientation.cs
Xamarin.Forms.Core/ScrollView.cs