<Window x:Class="WpfApp2.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:WpfApp2.Control"
mc:Ignorable="d"
Title="WindowRadioButton" Height="450" Width="800">
<Grid>
<!--
RadioButton
实现分组效果
1.使用Grid布局容器来嵌套
2.可以使用GroupName进行分组分区
-->
<RadioButton Content="男" GroupName="sex" Margin="10,100" FontSize="20" Foreground="Blue" VerticalAlignment="TOP" Horizontal
C#随笔 RadioButton 单选框使用
最新推荐文章于 2023-04-14 14:11:33 发布