I have created a property (see below) that shows ok in the grid, but am having trouble getting it to validate against the provided range. Is there a way to enforce the range in the property grid?
private int _Cue;
[DisplayName("Cue")]
[Category("General")]
[Description("Cue to lockout")]
[Range(1, 48)]
public int Cue
{
get
{
return _Cue;
}
set
{
if(_Cue == value)
return;
_Cue = value;
RaisePropertyChanged(() => Cue);
}
}
Thanks,
Neil