Exam Name: Microsoft Silverlight 4, Development
Exam Type: Microsoft Exam Code: 70-506
Certification Microsoft Certified Technology Specialist (MCTS) Total Questions: 150
Page 1 of 8 www.
realexams.
net
Question: 1.
You are developing a Silverlight 4...
More
Exam Name: Microsoft Silverlight 4, Development
Exam Type: Microsoft Exam Code: 70-506
Certification Microsoft Certified Technology Specialist (MCTS) Total Questions: 150
Page 1 of 8 www.
realexams.
net
Question: 1.
You are developing a Silverlight 4 application.
The application defines the following three event handlers.
(Line numbers are included for refer
ence only.
)
01 private void HandleCheck(object sender, RoutedEventArgs e)
02 {
03 MessageBox.
Show("Checked");
04 }
05
06 private void HandleUnchecked(object sender, RoutedEventArgs e)
07 {
08 MessageBox.
Show("Unchecked");
09 }
10
11 private void HandleThirdState(object sender, RoutedEventArgs e)
12 {
13 MessageBox.
Show("Indeterminate");
14 }
You need to allow a check box that can be selected, cleared, or set to Indeterminate.
You also
need to ensure that the event handlers are invoked when the user changes the state of the
control.
Which XAML fragment should you use?
A.
<CheckBox x:Name="cb2" Content="Three State CheckBox
Less