What are two possible code fragments you can use to achieve this goal?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You use the following code fragment.

<RadioButton>Option 1</RadioButton>
<RadioButton>Option 2</RadioButton>
<RadioButton>Option 3</RadioButton>
<RadioButton>Option A</RadioButton>
<RadioButton>Option B</RadioButton>
<RadioButton>Option C</RadioButton>

You need to ensure that the following requirements are met:

* Options 1, 2, and 3 are mutually exclusive options.
* Options A, B, and C are mutually exclusive options.
* Keyboard shortcuts are available for each option.

What are two possible code fragments you can use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You use the following code fragment.

<RadioButton>Option 1</RadioButton>
<RadioButton>Option 2</RadioButton>
<RadioButton>Option 3</RadioButton>
<RadioButton>Option A</RadioButton>
<RadioButton>Option B</RadioButton>
<RadioButton>Option C</RadioButton>

You need to ensure that the following requirements are met:

* Options 1, 2, and 3 are mutually exclusive options.
* Options A, B, and C are mutually exclusive options.
* Keyboard shortcuts are available for each option.

What are two possible code fragments you can use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

A.
<RadioButton GroupName="First">Option &1</RadioButton>
<RadioButton GroupName="First">Option &2</RadioButton>
<RadioButton GroupName="First">Option &3</RadioButton>
<RadioButton GroupName="Second">Option &A</RadioButton>
<RadioButton GroupName="Second">Option &B</RadioButton>
<RadioButton GroupName="Second">Option &C</RadioButton>

B.
<RadioButton GroupName="First">Option _1</RadioButton>
<RadioButton GroupName="First">Option _2</RadioButton>
<RadioButton GroupName="First">Option _3</RadioButton>
<RadioButton GroupName="Second">Option _A</RadioButton>
<RadioButton GroupName="Second">Option _B</RadioButton>
<RadioButton GroupName="Second">Option _C</RadioButton>

C.
<RadioButton GroupName="First">Option 1</RadioButton>
<RadioButton GroupName="First">Option 2</RadioButton>
<RadioButton GroupName="First">Option 3</RadioButton>
<RadioButton GroupName="Second">Option A</RadioButton>
<RadioButton GroupName="Second">Option B</RadioButton>
<RadioButton GroupName="Second">Option C</RadioButton>

D.
<StackPanel>
<RadioButton>Option _1</RadioButton>
<RadioButton>Option _2</RadioButton>
<RadioButton>Option _3</RadioButton>
</StackPanel>
<StackPanel>
<RadioButton>Option _A</RadioButton>
<RadioButton>Option _B</RadioButton>
<RadioButton>Option _C</RadioButton>
</StackPanel>

E.
<StackPanel>
<RadioButton>Option &1</RadioButton>
<RadioButton>Option &2</RadioButton>
<RadioButton>Option &3</RadioButton>
</StackPanel>
<StackPanel>
<RadioButton>Option &A</RadioButton>
<RadioButton>Option &B</RadioButton>
<RadioButton>Option &C</RadioButton>
</StackPanel>

F.
<StackPanel>
<RadioButton>Option 1</RadioButton>
<RadioButton>Option 2</RadioButton>
<RadioButton>Option 3</RadioButton>
</StackPanel>
<StackPanel>
<RadioButton>Option A</RadioButton>
<RadioButton>Option B</RadioButton>
<RadioButton>Option C</RadioButton>
</StackPanel>



Leave a Reply 0

Your email address will not be published. Required fields are marked *