I have a Window shell that is basically:
<Window>
<ContentPresenter Content="{Binding}" />
</Window>
Injected into the ContentPresenter at run-time are UserControls. What I want to be able to do is write:
<UserControl Window.Title="The title for my window">
[...]
</UserControl>
So that the Window title is updated using the UserControl Window.Title property.
I have a feeling this can be achieved using attached properties. Can anyone start me off in the right direction?
Daniel
C#:
XAML: