当前位置:网站首页>WPF简单登录页面的完成案例
WPF简单登录页面的完成案例
2022-07-29 06:20:00 【济南医疗小程序状元】
grid单个控件的使用,完成
<Window x:Class="WpfAppDL.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:WpfAppDL"
mc:Ignorable="d"
Title="MainWindow" Height="300" Width="600" FontSize="20">
<Grid >
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="*" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="用户名:" />
<TextBox Text="张三" Grid.Column="1" />
<TextBlock Text="密码:" Grid.Row="1"/>
<TextBox Text="张三" Grid.Row="1" Grid.Column="1" />
<Button Content="登录" Grid.Row="2" Margin="-100,2,4,5" Grid.ColumnSpan="2" Width="100" Height="30" Click="Button_Click"/>
<Button Content="注册" Grid.Row="2" Width="100" Height="30" Grid.Column="1"/>
</Grid>
</Window>
效果
点击登录,输出字符串

边栏推荐
猜你喜欢

外包干了3年,跳槽后转自动化测试工资是原来的2倍,秘诀原来是......

微信小程序的反编译

Image noise and matrix inversion

Teacher wangshuyao's notes on operations research 04 fundamentals of linear algebra

10道面试常问JVM题

上采样之反卷积操作

Flink实时仓库-DWD层(交易域-加购维度退化处理)模板代码

Flink实时仓库-DWD层(流量域)模板代码

MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of

基于C语言实现图书借阅管理系统
随机推荐
IDEA找不到Database解决方法
Image noise and matrix inversion
Flink real-time warehouse DWD layer (processing complex data - installation and replacement of streams and tables) template code
Relative date used by filter in salesforce
[cf1054h] epic Revolution -- number theory, convolution, arbitrary modulus NTT
leetcode-1331:数组序号转换
mysql可以定时导出表格吗?
做开发4年13K,想转行自动化测试,薪资还能涨吗···
剑指 Offer II 115:重建序列
Salesforce中过滤器Filter使用的相对日期
ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载
Not so simple singleton mode
Federal learning backdoor attack summary (2019-2022)
实现改变一段文字的部分颜色效果
pytorch的技巧记录
Improved Pillar with Fine-grained Feature for 3D Object Detection论文笔记
Leetcode-1331: array ordinal conversion
Pytorch多GPU条件下DDP集群分布训练实现(简述-从无到有)
Teacher wangshuyao's notes on operations research 06 linear programming and simplex method (geometric significance)
Invalid access control