I am trying to bind a window title to a property in my view model, for example:
Title="{Binding WindowTitle}"
The property looks like this:
public string WindowTitle
{
get { return CurrentProfileName + " - Backup"; }
}
The CurrentProfileName property is derived from another property (CurrentProfilePath), which is set when someone opens or saves a profile. At initial startup, the window title is set correctly, but when the CurrentProfilePath property changes, the change does not turn into the window title, as I expected.
I don’t think I can use the dependency property here because the property is derived. The underlying property from which it is derived is a dependency property, but this does not seem to have any effect.
How can I make the form header self-update based on this property?