Relatively new to WPF, so bear with me if I'm missing something obvious. I'm working on creating a "summary" textbox at the bottom of the window that describes the state of the application. The code for the property I want to bind to looks a bit like this:
public String WindowDescription
{
get { return (radioButton.IsChecked == true ? "A " : "B ") + NameTextBox.Text
+ " " + (cbRoute.SelectedItem != null? comboBox.SelectedItem.ToString() : ""); }
}
And I've bound it to the control like so:
<TextBox IsEnabled="False" Text="{Binding Path=WindowDescription}"/>
The binding doesn't work at all right now - each control referenced in WindowDescription has some default value, but even those values don't populate the TextBox. Like I said, I'm new to WPF, so feel free to point out anything missing from my example, no matter how obvious it may seem. Thanks.