diff options
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/ScrollView.cs | 30 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/ScrollView.cs b/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/ScrollView.cs new file mode 100644 index 00000000..1a90a1f1 --- /dev/null +++ b/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/ScrollView.cs @@ -0,0 +1,30 @@ +namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific +{ + using FormsElement = Forms.ScrollView; + + public static class ScrollView + { + public static readonly BindableProperty ShouldDelayContentTouchesProperty = BindableProperty.Create(nameof(ShouldDelayContentTouches), typeof(bool), typeof(ScrollView), true); + + public static bool GetShouldDelayContentTouches(BindableObject element) + { + return (bool)element.GetValue(ShouldDelayContentTouchesProperty); + } + + public static void SetShouldDelayContentTouches(BindableObject element, bool value) + { + element.SetValue(ShouldDelayContentTouchesProperty, value); + } + + public static bool ShouldDelayContentTouches(this IPlatformElementConfiguration<iOS, FormsElement> config) + { + return GetShouldDelayContentTouches(config.Element); + } + + public static IPlatformElementConfiguration<iOS, FormsElement> SetShouldDelayContentTouches(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) + { + SetShouldDelayContentTouches(config.Element, value); + return config; + } + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj index a052352e..1184e012 100644 --- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj +++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj @@ -102,6 +102,7 @@ <Compile Include="PlatformConfiguration\iOSSpecific\BlurEffectStyle.cs" /> <Compile Include="PlatformConfiguration\iOSSpecific\Entry.cs" /> <Compile Include="PlatformConfiguration\iOSSpecific\NavigationPage.cs" /> + <Compile Include="PlatformConfiguration\iOSSpecific\ScrollView.cs" /> <Compile Include="PlatformConfiguration\iOSSpecific\Picker.cs" /> <Compile Include="PlatformConfiguration\iOSSpecific\StatusBarTextColorMode.cs" /> <Compile Include="PlatformConfiguration\iOSSpecific\Page.cs" /> |