-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Image.cs
66 lines (56 loc) · 3.31 KB
/
Image.cs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#nullable disable
namespace Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific
{
using Microsoft.Maui.Graphics;
using FormsElement = Maui.Controls.Image;
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="Type[@FullName='Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific.Image']/Docs/*" />
public static class Image
{
/// <summary>Bindable property for attached property <c>BlendColor</c>.</summary>
public static readonly BindableProperty BlendColorProperty = BindableProperty.Create("BlendColor", typeof(Color), typeof(FormsElement), null);
/// <summary>Bindable property for attached property <c>File</c>.</summary>
public static readonly BindableProperty FileProperty = BindableProperty.Create("File", typeof(string), typeof(FormsElement), default(string));
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='GetBlendColor'][1]/Docs/*" />
public static Color GetBlendColor(BindableObject element)
{
return (Color)element.GetValue(BlendColorProperty);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='SetBlendColor'][1]/Docs/*" />
public static void SetBlendColor(BindableObject element, Color color)
{
element.SetValue(BlendColorProperty, color);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='GetBlendColor'][2]/Docs/*" />
public static Color GetBlendColor(this IPlatformElementConfiguration<Tizen, FormsElement> config)
{
return GetBlendColor(config.Element);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='SetBlendColor'][2]/Docs/*" />
public static IPlatformElementConfiguration<Tizen, FormsElement> SetBlendColor(this IPlatformElementConfiguration<Tizen, FormsElement> config, Color color)
{
SetBlendColor(config.Element, color);
return config;
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='GetFile'][1]/Docs/*" />
public static string GetFile(BindableObject element)
{
return (string)element.GetValue(FileProperty);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='SetFile'][1]/Docs/*" />
public static void SetFile(BindableObject element, string file)
{
element.SetValue(FileProperty, file);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='GetFile'][2]/Docs/*" />
public static string GetFile(this IPlatformElementConfiguration<Tizen, FormsElement> config)
{
return GetFile(config.Element);
}
/// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific/Image.xml" path="//Member[@MemberName='SetFile'][2]/Docs/*" />
public static IPlatformElementConfiguration<Tizen, FormsElement> SetFile(this IPlatformElementConfiguration<Tizen, FormsElement> config, string file)
{
SetFile(config.Element, file);
return config;
}
}
}