我需要将“主菜单”附加到第一网格的行中,并将画布放入第二行。 在运行时,我看到第二行呈现在第一行之下。为什么?怎么了?
我可以从顶部开始设置边距,但这很糟糕,在此项目中不需要。
截屏: screen1
sudo apt-get update
Hit:1 http://pk.archive.ubuntu.com/ubuntu cosmic InRelease
Hit:2 http://pk.archive.ubuntu.com/ubuntu cosmic-updates InRelease
Hit:3 http://pk.archive.ubuntu.com/ubuntu cosmic-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu cosmic-security InRelease [83.2 kB]
Ign:5 http://packages.ros.org/ros/ubuntu cosmic InRelease Err:6 http://packages.ros.org/ros/ubuntu cosmic Release 404 Not Found [IP: 64.50.236.52 80] Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu cosmic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
答案 0 :(得分:0)
<Grid.RowDefinitions>
丢失:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Canvas Grid.Row="1" Grid.Column="0"/>
<Menu Grid.Row="0" Grid.Column="0">
</Menu>
</Grid>