当前位置:网站首页>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 test whether the sample conforms to normality (test whether the sample comes from a normally distributed population): shapiro.test function tests whether the sample conforms to the normal d
- How to grab configuration information for DELL SC compellent storage system
- 基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
- TCP详解
- The paper manual becomes 3D animation in seconds, the latest research of Wu Jiajun of Stanford University, selected for ECCV 2022
- R语言的画图代码及差异性分析[通俗易懂]
- OpenShift 4 - 用 Operator 部署 Redis 集群
- 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语言检验样本是否符合正态性(检验样本是否来自一个正态分布总体):shapiro.test函数检验样本是否符合正态分布(normality test)
- Word table to Excel
猜你喜欢
随机推荐
微信聊天记录中搜索红包
【MySQL】Mysql范式及外键作用
NC | 斯坦福申小涛等开发数据可重复分析计算框架TidyMass
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
OpenShift 4 - 用 Operator 部署 Redis 集群
《微信小程序-进阶篇》Lin-ui组件库源码分析-Icon组件
STM32(十)------- SPI通信
微服务架构选型
Architecture actual combat battalion module 8 message queue table structure design
为什么毕业季不要表白?
435. 无重叠区间
谷歌CTS测试(cta测试)
架构实战营模块8消息队列表结构设计
Gorm—Go language database framework
vb中如何连接mysql_vb怎么连接数据库「建议收藏」
How to clean up the lodash.memoize cache in the element-plus virtual table virtual-list component?
Word表格转到Excel中
Ubuntu Topic 5: Setting a Static IP Address
删除 状态良好(恢复分区)的磁盘
大健云仓冲刺美股:增营收反减利润 京东与DCM是股东