当前位置:网站首页>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>
效果
边栏推荐
- 蔚来杯2022牛客暑期多校训练营4
- 为什么黑客领域几乎一片男生?
- "Listen to me, thank you" can be said in ancient poetry?Tsinghua University has developed an artifact of "Searching Sentences According to Meaning", which can search for the famous sayings you want wi
- 公告
- OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry
- 使用 PyTorch 检测眼部疾病
- Matlab矩阵基本操作(定义,运算)
- c语言hello world代码(代码编程入门)
- TCP详解
- LeetCode二叉树系列——226.翻转二叉树
猜你喜欢
Unity Shader入门精要学习——透明效果
Message queue data storage MySQL table design
The meaning of node_exporter performance monitoring information collection in Prometheus
工程力学复习资料
AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
2021 OWASP TOP 10 漏洞指南
Ubuntu Topic 5: Setting a Static IP Address
Excel quickly aligns the middle name of the table (two-word name and three-word name alignment)
自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统
大健云仓冲刺美股:增营收反减利润 京东与DCM是股东
随机推荐
Ubuntu Topic 5: Setting a Static IP Address
消息队列消息数据存储MySQL表设计
UnityShader入门学习(一)——GPU与Shader
自动化测试如何创造业务价值?
实现防抖与节流函数
/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用
格林美瑞交所IPO:募资3.8亿美元 更多中国企业将赴欧洲上市
Jmeter常用的十大组件
名创优品斥资6.95亿购买创始人叶国富所持办公楼股权
自适应控制——仿真实验三 用超稳定性理论设计模型参考自适应系统
力扣:56. 合并区间
基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
Getting started with UnityShader (3) - Unity's Shader
Gorm—Go language database framework
深入浅出边缘云 | 4. 生命周期管理
使用 PyTorch 检测眼部疾病
【CUDA学习笔记】初识CUDA
OpenShift 4 - Deploy Redis Cluster with Operator
OpenShift 4 - 用 Operator 部署 Redis 集群
Small test knife: Go reflection helped me convert Excel to Struct