Border FAIL !! I have a border in XAML code that is defined right after that main canvas:
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
... VerticalAlignment="Top" HorizontalAlignment="Center">
<Border x:Name="JohnnyBorder" BorderThickness="1" Margin="0,0,0,0" BorderBrush="#FF677B8B" VerticalAlignment="Stretch"
HorizontalAlignment="Center">
在《法典》中,我把边界推向越高:
JohnnyBorder = (Border)appCanvas.FindName("JohnnyBorder");
JohnnyBorder.Height = App.Current.Host.Content.ActualHeight;
JohnnyBorder.Width = App.Current.Host.Content.ActualWidth;
但它并不奏效。 JohnnyBoarder的底线比浏览器底部高出几个百分点。 为什么?