I have some class with properties firstName and lastName. I want bind TextBlock to concatanation of this two properties. I know that I can create third property that will be return concatanation of these properties. But I dont want to use this approach. Is it possible to Bind TextBlock to two properties. and also I dont want create composite userControl.
I have some class with properties firstName and lastName. I want bind TextBlock to
Share
In .NET 3.5SP1, Microsoft added StringFormat to bindings. This makes it much easier. See Lester’s blog post for an example. In your case:
or