|
Hi @all,
I am just starting with MVVM Light in Windows 8 and work my way through Command ect.
I'd like to enable/disable Buttons as required without collapsing. I implemented the following in ViewModel
private bool _isEnabledAusWahlClick;
public bool IsEnabledAuswahlClick
{
get { return _isEnabledAusWahlClick; }
set
{
if (_isEnabledAusWahlClick==value)
{
return;
}
_isEnabledAusWahlClick = value;
RaisePropertyChanged("IsEnabledAuswahlClick");
}
}
When set to true, button appears, when set to false button disappears completely. Expected is, that Button cannot be clicked and is shown in a shaded layout.
Any suggestion what I did wrong?
Cheers
|