如果我正确理解要求,您可以使用
Border
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="Red" BorderThickness="5, 0, 0, 0" >
<ListView>
<TextBlock Text="red"/>
<TextBlock Text="red"/>
<TextBlock Text="red"/>
</ListView>
</Border>
<Border Grid.Column="1" BorderBrush="Blue" BorderThickness="5, 0, 0, 0" >
<Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalContentAlignment="Top">
<StackPanel Orientation="Horizontal">
<TextBlock Text="blue"/>
</StackPanel>
</Button>
</Border>
<Border Grid.Column="2" BorderBrush="Green" BorderThickness="5, 0, 0, 0" >
<StackPanel Orientation="Horizontal">
<TextBlock Text="green"/>
</StackPanel>
</Border>
</Grid>
Margin
s、 例如,尝试
<ListView Margin="-10, 0, 0, 0">