当前位置:网站首页>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>
效果
点击登录,输出字符串

边栏推荐
- 阿里一面,给了几条SQL,问需要执行几次树搜索操作?
- Teacher wangshuyao's operations research course notes 07 linear programming and simplex method (standard form, base, base solution, base feasible solution, feasible base)
- Sword finger offer II 115: reconstruction sequence
- CVPR2022Oral专题系列(一):低光增强
- 【C语言刷LeetCode】1054. 距离相等的条形码(M)
- Unity免费元素特效推荐
- 模拟卷Leetcode【普通】093. 复原 IP 地址
- buck电路boot和ph引脚实测
- Dbasql interview questions
- Pytorch多GPU条件下DDP集群分布训练实现(简述-从无到有)
猜你喜欢

DM数据守护集群搭建

记 - 踩坑-实时数仓开发 - doris/pg/flink

Teacher Wu Enda's machine learning course notes 02 univariate linear regression

Basic knowledge of MySQL (high frequency interview questions)

Unity探索地块通路设计分析 & 流程+代码具体实现

10 frequently asked JVM questions in interviews

How to write controller layer code gracefully?

IDEA中实现Mapper接口到映射文件xml的跳转

实战!聊聊如何解决MySQL深分页问题

实现改变一段文字的部分颜色效果
随机推荐
实现改变一段文字的部分颜色效果
Some tips of vim text editor
LDAP brief description and unified authentication description
SS command details
Teacher wangshuyao's notes on operations research 02 fundamentals of advanced mathematics
数据库使用psql及jdbc进行远程连接,不定时自动断开的解决办法
MutationObserver文档学习
Salesforce中过滤器Filter使用的相对日期
[CF1054H] Epic Convolution——数论,卷积,任意模数NTT
Teacher wangshuyao's notes on operations research course 08 linear programming and simplex method (simplex method)
Flink实时仓库-DWD层(流量域)模板代码
Leetcode-592: fraction addition and subtraction
JVM之垃圾回收机制(GC)
Record - step on the pit - real-time data warehouse development - doris/pg/flink
Jetpack Compose 中的键盘处理
Sword finger offer II 115: reconstruction sequence
数据库多表查询 联合查询 增删改查
数组的子集不能累加出的最小正数
IO stream - file - properties
实战!聊聊如何解决MySQL深分页问题