当前位置:网站首页>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>
效果
边栏推荐
- OpenCV测量物体的尺寸技能 get~
- NPM淘宝镜像(最新版本)于2021-11-21 16:53:52发布新版本npm镜像[通俗易懂]
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用
- Use of el-tooltip
- 深入浅出边缘云 | 4. 生命周期管理
- 易驱线主控芯片对比(电动三轮电机90O瓦世纪通达)
- Nuget打包并上传教程
- The R language ggstatsplot package ggbarstats function visualizes bar charts, and adds hypothesis test results (including sample number, statistics, effect size and its confidence interval, significan
- Gorm—Go语言数据库框架
- QGIS 加载WMS数据,重新投影
猜你喜欢
随机推荐
微服务架构选型
763.划分字母区间——之打开新世界
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(legend、修改可视化图像的图例在整图中的位置)
女性服务社群产品设计
"Listen to me, thank you" can be said in ancient poetry?Tsinghua University has developed an artifact of "Searching Sentences According to Meaning", which can search for the famous sayings you want wi
Ubantu专题4:xshell、xftp连接接虚拟机以及设置xshell复制粘贴快捷键
TRACE32 - SNOOPer-based variable logging
2021 OWASP TOP 10 漏洞指南
谷歌CTS测试(cta测试)
AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
力扣:56. 合并区间
自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统
TRACE32——C源码关联
工程力学复习资料
梅克尔工作室-第一次
The meaning of node_exporter performance monitoring information collection in Prometheus
Web自动化实战——Selenium4(自动化测试环境的搭建)
工程水文学复习资料
R语言计算时间序列数据的移动平均值(滚动平均值、例如5日均线、10日均线等):使用zoo包中的rollmean函数计算k个周期移动平均值
2021 OWASP TOP 10 Vulnerability Guide