i would like to enable/disable buttons according to the current active userlevel. i have a property in the MV for the current userlevel:
public int CurrentUserLevel
{
get { return _CurrentUserLevel; }
set
{
if (_CurrentUserLevel == value)
return;
_CurrentUserLevel = value;
RaisePropertyChanged("CurrentUserLevel");
}
}
how can i enable/disable the button if this value is >=x?