I want the button to be visible in State.Away and State.Stop but for some reason the button is always visible even if the State is different than State.Away and State.Stop.
Xaml:
<Button Text="Hello" IsVisible="{Binding View}"/>
ViewModel:
private bool myBool;
public bool View
{
get
{
if (State == State.Away || State == State.Gone)
{
myBool = true;
}
else
{
myBool = false;
}
return myBool;
}
}