有没有办法在xaml中创建粘性页脚?
我知道你可以用css做一个粘性页脚,有没有办法用xaml做呢?或者在xaml中使用css来做同样的事情?我是xaml的新手,因此非常感谢您的帮助。可以使用DockPanels来完成。我会选择网格,因为如果您的布局发生更改或添加更多控件,我发现网格更易于扩展:有没有办法在xaml中创建粘性页脚?,xaml,footer,sticky,Xaml,Footer,Sticky,我知道你可以用css做一个粘性页脚,有没有办法用xaml做呢?或者在xaml中使用css来做同样的事情?我是xaml的新手,因此非常感谢您的帮助。可以使用DockPanels来完成。我会选择网格,因为如果您的布局发生更改或添加更多控件,我发现网格更易于扩展: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Hei
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Label at the top"/>
<Label Grid.Row="0" Grid.Column="0" Content="Label at the bottom"/>
</Grid>
有一个不错的教程更好的方法是使用网格布局并在每个单元格中设置垂直对齐。这不是一个粘性页脚,而是底部的固定页脚。请参阅