gpt4 book ai didi

c# - 大小主窗口

转载 作者:太空宇宙 更新时间:2023-11-03 22:55:03 26 4
gpt4 key购买 nike

<分区>

为什么我看不到源代码和编译之间大小相等的 WPF 表单?我的意思是状态栏和按钮在图像之间看起来不同。他们有不同的立场。编译前的第一张图片。之后的第二张图片。

我做错了什么?

很抱歉初学者的问题。

First example

Second example

<Window x:Class="WebDownloader.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WebDownloader"
mc:Ignorable="d"
Title="MainWindow" Initialized="Window_Initialized" Closed="Window_Closed" ResizeMode="NoResize" Height="190" Width="225.395">
<Grid>
<Button x:Name="MainButton" Content="Done" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="135,108,0,0" Click="MainButton_Click" FontFamily="Times New Roman"/>
<StatusBar HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,133,0,0" Width="209" Height="18" FontFamily="Times New Roman">
<StatusBarItem Content="StatusBarItem" Height="18" VerticalAlignment="Top" FontFamily="Times New Roman" Width="78" HorizontalAlignment="Left"/>
</StatusBar>

</Grid>

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com