当前位置:网站首页>WPF项目--控件入门基础用法,必知必会XAML
WPF项目--控件入门基础用法,必知必会XAML
2022-07-31 15:08:00 【济南医疗小程序状元】
控件入门基础用法,必知必会
<Window x:Class="WpfApp1.control.LableWindow1"
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:WpfApp1.control"
mc:Ignorable="d"
Title="LableWindow1" Height="450" Width="800">
<Grid>
<!--<Label Content="Label" HorizontalAlignment="Left" Margin="195,155,0,0" VerticalAlignment="Top"/>-->
<!--
height 高度设置 野兔 hare 的 高度 height
width 宽度设置 狼 wolf的宽度 width
外边距 使用margin 四个数字 对应方向分别为 左 上 右 下 女长官的外边距
一个数字,代表所有方向的外边距
两个数字 分别代表左右 上下 -->
<Label Width="180" Height="36" Content="ME is a lable 控件"
HorizontalAlignment="Right"
VerticalAlignment="Top" Margin="0,10" FontSize="18" Foreground="Blue"/>
</Grid>
</Window>
效果

边栏推荐
猜你喜欢

Description of Hikvision camera streaming RTSP address rules

工程流体力学复习

工程力学复习资料

LeetCode二叉树系列——222.完全二叉树的节点个数

学习笔记12--路径-速度分解法之局部路径搜索

OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry

sentinel与nacos持久化

Kubernetes原理剖析与实战应用手册,太全了

安装Xshell并使用其进行Ymodem协议的串口传输

Ubantu专题4:xshell、xftp连接接虚拟机以及设置xshell复制粘贴快捷键
随机推荐
为什么黑客领域几乎一片男生?
SQL、HQL、JPQL 到底有什么区别
The paper manual becomes 3D animation in seconds, the latest research of Wu Jiajun of Stanford University, selected for ECCV 2022
UnityShader入门学习(二)——渲染流水线
Node实现数据加密
模板与泛型编程值typelist实现
TRACE32——C源码关联
Efficient use of RecyclerView Section 3
hough变换检测直线原理(opencv霍夫直线检测)
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(caption、添加、修改可视化图像的题注、脚注内容)
Nuget package and upload tutorial
SIGABRT 报错时的注意事项和解决方法
OpenShift 4 - 用 Operator 部署 Redis 集群
Network cable RJ45 interface pins [easy to understand]
DeepLab Series Learning
Gorm—Go语言数据库框架
女性服务社群产品设计
AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
修改SQL语言实现Mysql 多表关联查询优化
Excel快速对齐表格的中姓名(两个字姓名和三个字姓名对齐)