当前位置:网站首页>radiobutton的使用
radiobutton的使用
2022-07-31 15:08:00 【济南医疗小程序状元】
radiobutton的使用,基础开发必备常识! 这些常识不知道,如何进行项目开发,更不要说啥子修改了,根本修改不了的!知道吗!
有些人的开发形势是极其严峻,极其残酷的处境中,主观得要知道,明白的啊,否则再继续遭遇,挫败就是必然的事情了。。。 明白其中的做事逻辑所在了吧,这是内在,无形,也是必然的做事逻辑所在啊。
<Window x:Class="WpfApp1.control.Windowradiobutton"
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="Windowradiobutton" Height="450" Width="800">
<Grid>
<!--
RadioButton 如果需要实现分组的效果。
1 使用布局容器 grid来嵌套。 比如 grid, StackPanel 栈面板等等
2 可以使用groupname 进行区分分组 (业务场景,已经用到的功能)
-->
<!--这是一种单选框分开选中的实现方式1
增加grid 网格面板的方式,二级网格面板的方式去实现 .
套一层,布局控件的方式去实现。
-->
<RadioButton Content="男" GroupName="sex" Margin="10,100" FontSize="20" Foreground="Red" HorizontalAlignment="Left"
VerticalAlignment="Top"
></RadioButton>
<RadioButton Content="女" GroupName="sex" Margin="80,100" FontSize="20" Foreground="Red" HorizontalAlignment="Left"
VerticalAlignment="Top"
></RadioButton>
<RadioButton Content="语文" GroupName="course" FontSize="20" Foreground="Blue" HorizontalAlignment="Left"
VerticalAlignment="Top"
> </RadioButton>
<RadioButton Content="数学" GroupName="course" Margin="70,0" FontSize="20" Foreground="Blue" HorizontalAlignment="Left"
VerticalAlignment="Top"
></RadioButton>
<RadioButton Content="历史" GroupName="course" Margin="140,0" FontSize="20" Foreground="Blue" HorizontalAlignment="Left"
VerticalAlignment="Top"
></RadioButton>
<RadioButton Content="外语English" GroupName="course" Margin="210,0" FontSize="20" Foreground="Blue" HorizontalAlignment="Left"
VerticalAlignment="Top"
></RadioButton>
</Grid>
</Window>
效果
边栏推荐
- 工程水文学复习资料
- Groupid(artifact id)
- Efficient use of RecyclerView Section 3
- OpenShift 4 - 用 Operator 部署 Redis 集群
- OpenShift 4 - Deploy Redis Cluster with Operator
- QGIS 加载WMS数据,重新投影
- 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
- LeetCode二叉树系列——110.平衡二叉树
- 公告
- Getting started with UnityShader (3) - Unity's Shader
猜你喜欢
OpenShift 4 - Deploy Redis Cluster with Operator
2021 OWASP TOP 10 Vulnerability Guide
TRACE32 - C source code association
TRACE32——基于SNOOPer的变量记录
分成两栏后文字顺序混乱的问题解决【写期刊论文时】
abaqus find contact pairs报错:surface name is already in use
「秋招系列」MySQL面试核心25问(附答案)
Synchronized and volatile interview brief summary
Ubuntu Topic 5: Setting a Static IP Address
Sentinel流量控制
随机推荐
Female service community product design
R语言的画图代码及差异性分析[通俗易懂]
梅克尔工作室-第一次
Node实现数据加密
Getting started with UnityShader (1) - GPU and Shader
UnityShader入门学习(三)——Unity的Shader
Ubuntu Topic 5: Setting a Static IP Address
四象限时间管理有多好用?
WeChat chat record search in a red envelope
LeetCode二叉树系列——222.完全二叉树的节点个数
Ubantu project 4: xshell, XFTP connected the virtual machine and set xshell copy and paste the shortcut
为什么黑客领域几乎一片男生?
RecyclerView的高效使用第一节
高等数学——常用不定积分公式
Synchronized和volatile 面试简单汇总
C language basic practice (nine-nine multiplication table) and printing different asterisk patterns
763.划分字母区间——之打开新世界
工程力学复习资料
英文语法-时与态
格林美瑞交所IPO:募资3.8亿美元 更多中国企业将赴欧洲上市