You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace WpfApp
{
public class Bone : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private void OnPropertyChanged(string propName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propName));
}
}
private double _top;
public double Top
{
get { return _top; }
set
{
_top = value;
OnPropertyChanged(nameof(Top));
}
}
public double Left { get; set; }
public double Diameter
{
get { return _diameter; }
set
{
_diameter = value;
OnPropertyChanged(nameof(Diameter));
}
}
private double _diameter;
public SolidColorBrush ColorBrush { get; set; }
}
}