Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个ListView与多个TextBlocks 。有可能有这样的东西吗?
ListView
TextBlock
TextBlock x:Name="AuthorInfo" Text="Author: {Binding data.author}"
还是在设置时将其添加到 data.author 会更好吗?
如果是 XAML,您可以使用 StringFormat
<TextBox Text="{Binding Path=data.author, StringFormat=Author: {0}}"/>