当前位置:网站首页>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>
效果

边栏推荐
- 谷歌CTS测试(cta测试)
- The role of /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.bashrc files
- 三、数组
- 力扣:56. 合并区间
- Sentinel流量控制
- OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry
- Web自动化实战——Selenium4(自动化测试环境的搭建)
- 使用 Chainlink Keepers 实现智能合约函数的自动化执行
- Use of el-tooltip
- Prometheus之node_exporter性能监控信息采集含义
猜你喜欢
随机推荐
工程水文学名词解释总结
大健云仓冲刺美股:增营收反减利润 京东与DCM是股东
RecyclerView高效使用第三节
Female service community product design
Efficient use of RecyclerView Section 2
R语言向前或者向后移动时间序列数据(自定义滞后或者超前的期数):使用dplyr包中的lag函数将时间序列数据向前移动一天(设置参数n为正值)
公告
SIGABRT 报错时的注意事项和解决方法
2021 OWASP TOP 10 Vulnerability Guide
R语言ggstatsplot包ggbarstats函数可视化条形图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)、检验结果报告符合APA标准
LeetCode二叉树系列——110.平衡二叉树
element-plus虚拟表格virtual-list组件中是怎么实现清理lodash.memoize缓存的?
Excel quickly aligns the middle name of the table (two-word name and three-word name alignment)
"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
微信聊天记录中搜索红包
OpenShift 4 - Deploy Redis Cluster with Operator
Spark学习(2)-Spark环境搭建-Local
R language moves time series data forward or backward (custom lag or lead period): use the lag function in the dplyr package to move the time series data forward by one day (set the parameter n to a p
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the box plot, use the font function to customize the font size, color, style (bold, italic) of the legen
OpenShift 4 - 用 Operator 部署 Redis 集群









