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

边栏推荐
- 工程水文学复习资料
- 763.划分字母区间——之打开新世界
- 基于最小二乘法和SVM从天气预报中预测太阳能发电量(Matlab代码实现)
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件的作用
- Network cable RJ45 interface pins [easy to understand]
- Ubantu project 4: xshell, XFTP connected the virtual machine and set xshell copy and paste the shortcut
- 7、常见面试口语提问问题汇总
- 梅克尔工作室-第一次
- 浏览器自带的拾色器
- How to clean up the lodash.memoize cache in the element-plus virtual table virtual-list component?
猜你喜欢

看交互设计如何集成到Scrum敏捷流程中

名创优品斥资6.95亿购买创始人叶国富所持办公楼股权

Female service community product design

女性服务社群产品设计

UnityShader入门学习(一)——GPU与Shader

《微信小程序-进阶篇》Lin-ui组件库源码分析-Icon组件

OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry

公告

TRACE32 - C source code association

"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
随机推荐
UnityShader入门学习(三)——Unity的Shader
分成两栏后文字顺序混乱的问题解决【写期刊论文时】
hough变换检测直线原理(opencv霍夫直线检测)
消息队列消息数据存储MySQL表设计
2021 OWASP TOP 10 Vulnerability Guide
TRACE32——常用操作
删除 状态良好(恢复分区)的磁盘
Gorm—Go语言数据库框架
Spark学习(3)-Spark环境搭建-Standalone
sentinel与nacos持久化
R语言ggplot2可视化:使用ggpubr包的ggmaplot函数可视化MA图(MA-plot)、font.legend参数和font.main参数设置标题和图例字体加粗
R语言的画图代码及差异性分析[通俗易懂]
435. 无重叠区间
模板与泛型编程值typelist实现
安装Xshell并使用其进行Ymodem协议的串口传输
Unity Shader入门精要学习——透明效果
DeepLab Series Learning
Ubantu project 4: xshell, XFTP connected the virtual machine and set xshell copy and paste the shortcut
浏览器自带的拾色器
WeChat chat record search in a red envelope