0
<Style x:Key="tests" TargetType="{x:Type RadioButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<ToggleButton Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" IsChecked="{Binding IsChecked, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
私は上記のコードを使用してトグルボタンの機能をカスタマイズしていますが、トグルボタンを丸い角として表示したいと思います。あなたは次の操作を行うことができます丸みを付けた角を持つトグルボタンを取得するにはUWPのトグルボタンの丸みのあるコーナー
ここで丸めボタンのサポートを受けてすぐに投票することができます:https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/20323243-add-cornerradius-property-to-button – Liero