|
using System.Windows.Media;
using System.ComponentModel;
namespace GaugeLib
{
public class GaugeRange:INotifyPropertyChanged
{
private double offset;
private Color color;
public double Offset
{
get { return offset; }
set
{
if (offset != value)
{
offset = value;
OnNotifyPropertyChanged("Offset");
}
}
}
public Color Color
{
get { return color; }
set
{
if (color != value)
{
color = value;
OnNotifyPropertyChanged("Color");
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void OnNotifyPropertyChanged(string name)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.