Mercurial > silverbladetech
view 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 |
line wrap: on
line source
using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace MetroWpf.Xaml.Controls { /// <summary> /// Interaction logic for PlayerControl.xaml /// </summary> public partial class PlayerControl : UserControl { #region Dependency Properties public static readonly DependencyProperty ShirtNumberProperty = DependencyProperty.Register("ShirtNumber", typeof(int), typeof(PlayerControl), new PropertyMetadata(0)); [Bindable(true)] public int ShirtNumber { get { return (int)this.GetValue(ShirtNumberProperty); } set { this.SetValue(ShirtNumberProperty, value); } } public static readonly DependencyProperty KitColorProperty = DependencyProperty.Register("KitColor", typeof(Brush), typeof(PlayerControl), new PropertyMetadata(new SolidColorBrush(Color.FromArgb(0,0,0,0)))); [Bindable(true)] public Brush KitColor { get { return (Brush)this.GetValue(KitColorProperty); } set { this.SetValue(KitColorProperty, value); } } public static readonly DependencyProperty SurnameProperty = DependencyProperty.Register("Surname", typeof(string), typeof(PlayerControl), new PropertyMetadata("Not set")); [Bindable(true)] public string Surname { get { return (string)this.GetValue(SurnameProperty); } set { this.SetValue(SurnameProperty, value); } } public static readonly DependencyProperty PositionProperty = DependencyProperty.Register("Position", typeof(string), typeof(PlayerControl), new PropertyMetadata("Not set")); [Bindable(true)] public string Position { get { return (string)this.GetValue(PositionProperty); } set { this.SetValue(PositionProperty, value); } } #endregion public PlayerControl() { InitializeComponent(); } } }