我使用xaml並試圖弄清楚如何修復框架錯誤。我看到對話框並不完全符合窗框。請看下面的鏈接。框架和對話框之間的空白空間
代碼如下:
Full Code: <Page x:Class="ccf_envcheck.Pages.HomePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ccf_envcheck"
mc:Ignorable="d"
d:DesignHeight="380"
Title="HomePage" Width="340.976" >
<StackPanel>
<TextBlock Text = ". . . " Height="50" Width="300" Margin = "10" TextWrapping="Wrap" FontWeight="Bold" Foreground="White" VerticalAlignment="Stretch"/>
<TextBlock Text = ". . . " Height="50" Width="300" Margin = "0" TextWrapping="Wrap" FontWeight="Bold" Foreground="White" VerticalAlignment="Stretch" />
<Button Click="FirstDevice" Content="First Device" Margin="10,15,14,1"/>
<Button Click="SecondDevice" Content="Second Device" Margin="10,15,14,1"/>
</StackPanel>
</Page>
你能添加完整的代碼嗎? – CodeNoob
已發佈代碼@CodeNoob –