Can we concat two properties together in binding expression? If possible without converter or without writing two textblocks and setting them individually?
You can add a new property with a getter that performs the concatenation.
Say you have FirstName
and LastName
properties. You can then define a Name
property as follows:
public string Name { get { return FirstName + " " + LastName; } }
This will work well, but you should be aware that you cannot do two-way binding for a read-only property. Also you may want to implement property changed notification for the concatenated property in the setters for the source properties.