当前位置:网站首页>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 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
- STM32(十)------- SPI通信
- 2021 OWASP TOP 10 Vulnerability Guide
- leetcode303场周赛复盘
- Sentinel流量控制
- Emmet 语法
- 工程水文学试卷
- ASP.NET Core 产生连续 Guid
- R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(legend、修改可视化图像的图例在整图中的位置)
- 基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
猜你喜欢

三、数组

格林美瑞交所IPO:募资3.8亿美元 更多中国企业将赴欧洲上市

Spark学习(2)-Spark环境搭建-Local

TRACE32——C源码关联

Unity Shader入门精要学习——透明效果

Synchronized and volatile interview brief summary

sentinel与nacos持久化

Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x

abaqus find contact pairs报错:surface name is already in use

英文语法-时与态
随机推荐
Excel快速对齐表格的中姓名(两个字姓名和三个字姓名对齐)
自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统
Ubantu专题4:xshell、xftp连接接虚拟机以及设置xshell复制粘贴快捷键
乡村基冲刺港交所:5个月期内亏2224万 SIG与红杉中国是股东
工程水文学名词解释总结
Gorm—Go language database framework
R语言ggstatsplot包ggbarstats函数可视化条形图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)、检验结果报告符合APA标准
vb中如何连接mysql_vb怎么连接数据库「建议收藏」
深入浅出边缘云 | 4. 生命周期管理
消息队列消息数据存储MySQL表设计
Ubuntu Topic 5: Setting a Static IP Address
OpenCV测量物体的尺寸技能 get~
Getting started with UnityShader (3) - Unity's Shader
三角恒等变换公式
Essential Learning for Getting Started with Unity Shader - Transparency Effect
网银被盗?这篇文章告诉你如何安全使用网银
hough变换检测直线原理(opencv霍夫直线检测)
Trigonometric identity transformation formula
R语言的画图代码及差异性分析[通俗易懂]
/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用