what i want to do is quite simple. I have got a Window and I Want the Title to be bound to two different Properties. The Title should be Updated everytime one of the Properties changes.
What I tried first and didnt work
<Window x:Class="MyNamespace.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="{Binding Path=Clientname} {Binding Path=LoadedConfiguration}"
So then I read here and here about Multibindings. And tried its usage like this what actually doesnt work, too
<Window x:Class="MyNamespace.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Window.Title>
<Multibinding StringFormat="{}{0} + {1}">
<Binding Path="Clientname" />
<Binding Path="LoadedConfiguration" />
</Multibinding>
</Window.Title>
The Error ist that Multibinding is not supported in a WPF project, what in my opinion doesnt make any sense.
So, what im guessing is a missing xmlns or a missing .dll. I found out that Multibindings are inside "PresentationFramework.dll", which i have referenced. According to msdn, you need either http://schemas.microsoft.com/winfx/2006/xaml/presentation or http://schemas.microsoft.com/netfx/2007/xaml/presentation to include, which I did.
Here I may actually not get any further, I hope you get.