blob: 1b3760e90604929fcca87f9312a878d97a54e635 (
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
31
32
33
|
namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
{
using FormsElement = Forms.VisualElement;
public static class VisualElement
{
public static readonly BindableProperty BlurEffectProperty =
BindableProperty.Create("BlurEffect", typeof(BlurEffectStyle),
typeof(VisualElement), BlurEffectStyle.None);
public static BlurEffectStyle GetBlurEffect(BindableObject element)
{
return (BlurEffectStyle)element.GetValue(BlurEffectProperty);
}
public static void SetBlurEffect(BindableObject element, BlurEffectStyle value)
{
element.SetValue(BlurEffectProperty, value);
}
public static BlurEffectStyle GetBlurEffect(this IPlatformElementConfiguration<iOS, FormsElement> config)
{
return GetBlurEffect(config.Element);
}
public static IPlatformElementConfiguration<iOS, FormsElement> UseBlurEffect(this IPlatformElementConfiguration<iOS, FormsElement> config, BlurEffectStyle value)
{
SetBlurEffect(config.Element, value);
return config;
}
}
}
|