<Window x:Class="land.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:land"
mc:Ignorable="d"
Icon="opent.ico"
Title="VTC" Height="400" ResizeMode="NoResize" Width="400"> //ResizeMode="NoResize" 设置静止缩放之后最小化和最大化都没有了
<Grid>
<Label Content="账号:" HorizontalAlignment="Left" Margin="20,0,0,0" FontSize="24" />
<Border CornerRadius="5" Height="40" BorderThickness="1" BorderBrush="Black" VerticalAlignment="Top" Margin="20,42,20,0" Padding="0">
<TextBox BorderThickness="0" TextWrapping="Wrap" Text="" VerticalAlignment="Center" FontSize="24" Margin="0"/>
</Border>
<Label Content="密码:" HorizontalAlignment="Left" Margin="20,85,0,0" VerticalAlignment="Top" FontSize="24"/>
<Border CornerRadius="5" Height="40" BorderThickness="1" BorderBrush="Black" VerticalAlignment="Top" Margin="20,130,20,0" >
<PasswordBox BorderThickness="0" VerticalAlignment="Center" FontSize="24"/>
</Border>
<Border x:Name="load" CornerRadius="5" Height="40" BorderThickness="1" BorderBrush="Black" VerticalAlignment="Top" Margin="20,284,20,0" Background="#FF30DA35" Cursor="Hand" >
<Label Content="登陆" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20,0,0,0" FontSize="24" Foreground="White"/>
</Border>
</Grid>
</Window>
wpf 初步学习
最新推荐文章于 2024-09-07 10:02:05 发布