I need to something like
<TextBlock
Grid.Column="2"
Text="{Binding FirstName,LastName}"
VerticalAlignment="Center"/>
The Windows Phone sdk(silverlight) doesn’t support MultiBinding 🙁
I don’t want to use a class that implements joins of two values, I need something faster, because I have a ListBox with about 10 000 values FirstName and LastName
You should add a
FullNameproperty to your ViewModel or whatever object you are using as a DataContext. The value is not stored anywhere you just calculate it at run-time from the values ofFirstNameandLastName. The cost of concatenating two strings is negligible compared to the cost of fetching those 10000 records from a web service or from the isolated storage, so you shouldn’t be worrying about that. If there are performance issues, you should implement some form of virtualization instead.