Combining two field into one Text content wpf
wpf
Solution
Something like this:
<Expander ...>
<Expander.Header>
<TextBlock>
<TextBlock Text="{Binding Song.Name}"/>
<TextBlock Text=" "/>
<TextBlock Text="{Binding Sond.ID}"/>
</TextBlock>
</Expander.Header>
...
</Expander>
Problem
I want to combine Name and ID of the song in the header of Song. Would it be possible if I have: ``` Song { public string Name {get; set;} public int ID {get; set;} } ``` I want to bind them into the Header of an Expander. At the moment, for binding with only one property. it is like this: ``` <Expander Foreground="#FFF4E7CA" Header="{Binding Song.Name}" FontWeight="Bold"> </Expander> ``` But I want to be some thing like this: ``` Header = "{Binding Some.Name, Song.ID}" ``` Is it possible somehow then? and if yes, how?