largeQ
首先,控件的宽度要随外部容器宽度改变而改变的话,只能用grid做容器,并且宽度为*才能达到自适应的效果。<DataTemplate><Grid><Grid.ColumnDefinitions><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /></Grid.ColumnDefinitions><TextBlock Grid.Column="0" Margin="5,10" Text="{Binding Name}" Width="30"/><TextBox Grid.Column="1" Margin="0,5" Height="24" Text="{Binding Text}"/><ComboBox Grid.Column="2" Margin="0,5" Height="24" ItemsSource="{Binding Combo}"/></Grid></DataTemplate>改成这样就可以了!~