Let's say I have
<TextBox
x:Name="txtBox1" />
<!-- more XAML here -->
<TextBox
x:Name="associatedToTextBox1"
IsEnabled={Binding ElementName=txtBox1, Path=Text, Magic=txtBox.Text != string.Empty} />
I want associatedToTextBox1 to be enabled only when txtBox1 is not empty. I thought there was a way to embed that functionality into xaml, without converters. Is this possible? If so, how?
There is nothing like an "inline expression".
You may however use a DataTrigger in a TextBox Style: