This is not possible to do strictly in XAML, and nor does such a requirement make sense. This is business logic that should be manifested in a view model:
public class MyViewModel : ViewModel
{
private string _text;
public string Text
{
get { return _text; }
set
{
if (_text != value)
{
_text = value;
OnPropertyChanged("Text");
OnPropertyChanged("IsButtonEnabled");
}
}
}
public bool IsButtonEnabled
{
get { return _text != "abc"; }
}
}
Then, in your XAML:
<TextBox Text="{Binding Text}"/>
<Button IsEnabled="{Binding IsButtonEnabled}"/>
HTH,
Kent