当前位置:网站首页>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>
效果
边栏推荐
- Groupid(artifact id)
- 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
- sentinel与nacos持久化
- ES6 类
- 三角恒等变换公式
- vb中如何连接mysql_vb怎么连接数据库「建议收藏」
- Efficient use of RecyclerView Section 1
- Node实现数据加密
- R语言ggplot2可视化:使用ggpubr包的ggmaplot函数可视化MA图(MA-plot)、font.legend参数和font.main参数设置标题和图例字体加粗
- 自适应控制——仿真实验三 用超稳定性理论设计模型参考自适应系统
猜你喜欢
随机推荐
mongo进入报错
LeetCode二叉树系列——226.翻转二叉树
R语言向前或者向后移动时间序列数据(自定义滞后或者超前的期数):使用dplyr包中的lag函数将时间序列数据向前移动一天(设置参数n为正值)
TRACE32——基于SNOOPer的变量记录
leetcode303场周赛复盘
Nuget package and upload tutorial
看交互设计如何集成到Scrum敏捷流程中
thread_local 变量的析构顺序
Use of el-tooltip
UnityShader入门学习(三)——Unity的Shader
「秋招系列」MySQL面试核心25问(附答案)
深入浅出边缘云 | 4. 生命周期管理
最小费用最大流问题详解
安装Xshell并使用其进行Ymodem协议的串口传输
STM32(十)------- SPI通信
c语言hello world代码(代码编程入门)
UnityShader入门学习(一)——GPU与Shader
AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
RecyclerView的高效使用第一节
Recommendation System - Recall Phase - 2013: DSSM (Twin Towers Model) [Embedding (Semantic Vector) Recall] [Microsoft]