以下に示すように、私はRadioButton
とTextBox
内部のものを持っていStackPanel
ます:
<StackPanel Orientation="Horizontal">
<RadioButton x:Name="rbSelectedQuantity" GroupName="CardQuantity"
FontSize="14" Margin="5"
Content="Selected Quantity">
</RadioButton>
<TextBox x:Name="txtSelectedQuantity" Width="50" Margin="5" TextAlignment="Right"
Text="0"></TextBox>
</StackPanel>
これが私のシナリオです。TextBox内をクリックすると、ラジオボタンが自動的にチェックされます。
これはどのようにすればよいですか?