-
Notifications
You must be signed in to change notification settings - Fork 32
/
AchievementView.xaml.cs
44 lines (34 loc) · 961 Bytes
/
AchievementView.xaml.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
using Xamarin.Forms;
namespace Flexibility.Shared
{
public partial class AchievementView : Grid
{
public static readonly BindableProperty IconProperty =
BindableProperty.Create(nameof(Icon), typeof(string), typeof(AchievementView), "");
public string Icon
{
get { return (string)GetValue(IconProperty); }
set { SetValue(IconProperty, value); OnPropertyChanged(nameof(Icon)); }
}
public static readonly BindableProperty AchievementProperty =
BindableProperty.Create(nameof(Achievement), typeof(string), typeof(AchievementView), "First Win");
public string Achievement
{
get { return (string)GetValue(AchievementProperty); }
set { SetValue(AchievementProperty, value); OnPropertyChanged(nameof(Achievement)); }
}
private bool isAchieved;
public bool IsAchieved
{
set
{
isAchieved = value;
}
}
public AchievementView()
{
InitializeComponent();
BindingContext = this;
}
}
}