comparison MetroWpf/MetroWpf.Xaml/Controls/PlayerControl.xaml.cs @ 15:060f02cd4591

Initial commit, pre airport work
author stevenh7776 stevenhollidge@hotmail.com
date Mon, 12 Mar 2012 23:05:21 +0800
parents
children
comparison
equal deleted inserted replaced
14:741981715d94 15:060f02cd4591
1 using System.ComponentModel;
2 using System.Windows;
3 using System.Windows.Controls;
4 using System.Windows.Media;
5
6 namespace MetroWpf.Xaml.Controls
7 {
8
9 /// <summary>
10 /// Interaction logic for PlayerControl.xaml
11 /// </summary>
12 public partial class PlayerControl : UserControl
13 {
14 #region Dependency Properties
15
16 public static readonly DependencyProperty ShirtNumberProperty
17 = DependencyProperty.Register("ShirtNumber",
18 typeof(int),
19 typeof(PlayerControl),
20 new PropertyMetadata(0));
21
22 [Bindable(true)]
23 public int ShirtNumber
24 {
25 get { return (int)this.GetValue(ShirtNumberProperty); }
26 set { this.SetValue(ShirtNumberProperty, value); }
27 }
28
29 public static readonly DependencyProperty KitColorProperty
30 = DependencyProperty.Register("KitColor",
31 typeof(Brush),
32 typeof(PlayerControl),
33 new PropertyMetadata(new SolidColorBrush(Color.FromArgb(0,0,0,0))));
34
35 [Bindable(true)]
36 public Brush KitColor
37 {
38 get { return (Brush)this.GetValue(KitColorProperty); }
39 set { this.SetValue(KitColorProperty, value); }
40 }
41
42 public static readonly DependencyProperty SurnameProperty
43 = DependencyProperty.Register("Surname",
44 typeof(string),
45 typeof(PlayerControl),
46 new PropertyMetadata("Not set"));
47
48 [Bindable(true)]
49 public string Surname
50 {
51 get { return (string)this.GetValue(SurnameProperty); }
52 set { this.SetValue(SurnameProperty, value); }
53 }
54
55 public static readonly DependencyProperty PositionProperty
56 = DependencyProperty.Register("Position",
57 typeof(string),
58 typeof(PlayerControl),
59 new PropertyMetadata("Not set"));
60
61 [Bindable(true)]
62 public string Position
63 {
64 get { return (string)this.GetValue(PositionProperty); }
65 set { this.SetValue(PositionProperty, value); }
66 }
67
68 #endregion
69
70 public PlayerControl()
71 {
72 InitializeComponent();
73 }
74 }
75 }