当前位置:网站首页>border控件的使用
border控件的使用
2022-07-31 15:08:00 【济南医疗小程序状元】
border控件的使用
<Window x:Class="WpfApp1.control.Windowborder"
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="Windowborder" Height="450" Width="800">
<Grid>
<!--
BorderThickness 边框宽度默认为0 直接设置一个参数 代表的是四周宽度
BorderThickness 有四个参数时候,分别代表左边,上边,右边,下边
CornerRadius
我们设置边框颜色加上边框宽度,才能准确显示 边框的效果。
如果我们需要设置 角的弧度 ,需要使用CornerRadius 这个属性。
-->
<Border Width="200" Height="80"
Background="LightBlue"
BorderBrush="red" BorderThickness="1,1,2,1"
CornerRadius="15"
>
<!--<Label HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="20" Foreground="White">我是label1</Label>-->
<!--Border 只能有一个孩子. 写入第二个孩子,就报错了!
<Label HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="20" Foreground="White">我是label1</Label>-->
<!--<Grid>
<Label
FontSize="20" Foreground="White">我是label1</Label>
<Label HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="20" Foreground="White">我是label2</Label>
<Label HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="20" Foreground="White">我是label3</Label>
</Grid>-->
<Button Background="Transparent" FontSize="20" Foreground="White"
Content="I is a 按钮" Click="Button_Click" BorderBrush="Transparent">
</Button>
</Border>
</Grid>
</Window>
效果

边栏推荐
- R语言向前或者向后移动时间序列数据(自定义滞后或者超前的期数):使用dplyr包中的lag函数将时间序列数据向前移动一天(设置参数n为正值)
- How useful is four-quadrant time management?
- TRACE32 - Common Operations
- MANIFEST.MF文件(PDB文件)
- Advanced Mathematics - Commonly Used Indefinite Integral Formulas
- Groupid(artifact id)
- 英文语法-时与态
- WeChat chat record search in a red envelope
- 梅克尔工作室-第一次
- Female service community product design
猜你喜欢

浏览器自带的拾色器

华医网冲刺港股:5个月亏2976万 红杉与姚文彬是股东

公告

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

LeetCode二叉树系列——226.翻转二叉树

Efficient use of RecyclerView Section 1

为什么毕业季不要表白?

Introductory UnityShader learning (2) - the rendering pipeline

基于最小二乘法和SVM从天气预报中预测太阳能发电量(Matlab代码实现)

Ubantu专题4:xshell、xftp连接接虚拟机以及设置xshell复制粘贴快捷键
随机推荐
Groupid(artifact id)
Spark学习(2)-Spark环境搭建-Local
svn安装及使用(身体功能手册)
Female service community product design
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(caption、添加、修改可视化图像的题注、脚注内容)
大健云仓冲刺美股:增营收反减利润 京东与DCM是股东
看交互设计如何集成到Scrum敏捷流程中
格林美瑞交所IPO:募资3.8亿美元 更多中国企业将赴欧洲上市
Gorm—Go语言数据库框架
Advanced Mathematics - Commonly Used Indefinite Integral Formulas
UnityShader入门学习(一)——GPU与Shader
Use of el-tooltip
element-plus虚拟表格virtual-list组件中是怎么实现清理lodash.memoize缓存的?
Node实现数据加密
高等数学——常用不定积分公式
2021 OWASP TOP 10 漏洞指南
435. 无重叠区间
SQL、HQL、JPQL 到底有什么区别
基于最小二乘法和SVM从天气预报中预测太阳能发电量(Matlab代码实现)
浏览器自带的拾色器