Concatenating multiple bindings in a Title

Jan 14, 2010 at 10:45 AM


I'm trying to concat a few different string bindings together into my Ribbon's Title property. I've read around the subject, found a MarkupExtension which allows me to concat a single binding and a string, but I would like to concatenate mutiple bindings. I read elsewhere that I should be able to use StringFormat in a MultiBinding but I'm trying this with no luck:

                <MultiBinding StringFormat="Name: \{0\} ID: \{1\}">
                    <Binding Path="DisplayName"/>
                    <Binding Path="DisplayId"/>

Can anyone tell me what I'm doing wrong, I am using .Net 3.5 SP1 which claims to support this, but all I seem to get in the title is the content of DisplayName

Thanks in advance