-
Notifications
You must be signed in to change notification settings - Fork 5
/
MyEntry.cs
30 lines (27 loc) · 889 Bytes
/
MyEntry.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
namespace MauiCustomEntryHandler;
public class MyEntry : Entry
{
/// <summary>
/// Color of bottom border.
/// </summary>
public static BindableProperty UnderlineColorProperty = BindableProperty.Create(
nameof(UnderlineColor), typeof(Color), typeof(MyEntry), Colors.Black);
public Color UnderlineColor
{
get => (Color)GetValue(UnderlineColorProperty);
set => SetValue(UnderlineColorProperty, value);
}
/// <summary>
/// Thickness of bottom border.
/// </summary>
public static BindableProperty UnderlineThicknessProperty = BindableProperty.Create(
nameof(UnderlineThickness), typeof(int), typeof(MyEntry), 0);
public int UnderlineThickness
{
get => (int)GetValue(UnderlineThicknessProperty);
set => SetValue(UnderlineThicknessProperty, value);
}
public MyEntry()
{
}
}