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.
我有两个文本块,它们在页面上一个接一个——名字和姓氏。我将数据绑定到这个,所以大小取决于它们的长度。让他们使用可变大小的最佳方法是什么?
<StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding FirstName}" Margin="0,0,5,0" /> <TextBlock Text="{Binding LastName}" /> </StackPanel>