blob: 1a90a1f19b4a47f95c92395bcc6be820e63af7b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}
}
}
|