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

边栏推荐
- 工程水文学试卷
- OpenShift 4 - 定制 RHACS 安全策略,阻断生产集群使用高风险 Registry
- R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the grouped box plot, use the ggpar function to change the graphical parameters (caption, add, modify th
- mongo进入报错
- 基于最小二乘法和SVM从天气预报中预测太阳能发电量(Matlab代码实现)
- 消息队列消息数据存储MySQL表设计
- Nuget package and upload tutorial
- Message queue data storage MySQL table design
- 三、数组
- LeetCode二叉树系列——222.完全二叉树的节点个数
猜你喜欢

NC | 斯坦福申小涛等开发数据可重复分析计算框架TidyMass

The paper manual becomes 3D animation in seconds, the latest research of Wu Jiajun of Stanford University, selected for ECCV 2022

Jmeter常用的十大组件

Ubantu专题5:设置静态ip地址

Description of Hikvision camera streaming RTSP address rules

浏览器自带的拾色器

Synchronized and volatile interview brief summary

Ubuntu Topic 5: Setting a Static IP Address

Introductory UnityShader learning (2) - the rendering pipeline

架构实战营模块8消息队列表结构设计
随机推荐
Essential Learning for Getting Started with Unity Shader - Transparency Effect
435. 无重叠区间
[CUDA study notes] First acquaintance with CUDA
TRACE32——C源码关联
NPM Taobao mirror (latest version) released a new version of npm mirror at 2021-11-21 16:53:52 [easy to understand]
NPM淘宝镜像(最新版本)于2021-11-21 16:53:52发布新版本npm镜像[通俗易懂]
Groupid(artifact id)
分成两栏后文字顺序混乱的问题解决【写期刊论文时】
Getting started with UnityShader (1) - GPU and Shader
Spark学习(3)-Spark环境搭建-Standalone
ERROR: Failed building wheel for osgeo
Efficient use of RecyclerView Section 3
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(caption、添加、修改可视化图像的题注、脚注内容)
工程水文学试卷
Word表格转到Excel中
Destruction order of thread_local variables
Ubuntu Topic 5: Setting a Static IP Address
Gorm—Go language database framework
PDF 拆分/合并
/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用