Which XAML fragment should you insert at line 07?
You are developing a Silverlight 4 application. The application has an XAML page that contains the following XAML fragment. (Line numbers are included for reference only.)
01 <ComboBox x:Name=”cbName”>
02 <ComboBoxItem Content=”One”/>
03 <ComboBoxItem Content=”Two”/>
04 </ComboBox>
05 <Rectangle>
06 <i:Interaction.Triggers>
07
08 </i:Interaction.Triggers>
09 </Rectangle>
You need to allow the user to call an ICommand named GetPeopleCommand when the user clicks the Rectangle. You also need to pass the selected value of the ComboBox to GetPeopleCommand. Which XAML fragment should you insert at line 07?
Which code fragment should you insert at line 07?
You are developing a Silverlight 4 application.
The application defines the following XAML fragment. (Line numbers are included for reference only.)
01 <Canvas Width=”400″ Height=”300″>
02 <Canvas.Resources>
03 <Storyboard x:Name=”myStoryboard”>
04 <PointAnimationUsingKeyFrames Storyboard.TargetProperty=”Center” Storyboard.TargetName=”AnimatedEllipse”>
05 <EasingPointKeyFrame Value=”50,20″ KeyTime=”00:00:02″>
06 <EasingPointKeyFrame.EasingFunction>
07
08 </EasingPointKeyFrame.EasingFunction>
09 </EasingPointKeyFrame>
10 </PointAnimationUsingKeyFrames>
11 </Storyboard>
12 </Canvas.Resources>
13 <Path Fill=”Blue”>
14 <Path.Data>
15 <EllipseGeometry x:Name=”AnimatedEllipse” RadiusX=”15″ RadiusY=”15″ />
16 </Path.Data>
17 </Path>
18 </Canvas>
You need to animate the ellipse so that the ellipse moves to the upper boundary of the canvas where it slows down and stops. Which code fragment should you insert at line 07?
Which XAML fragment should you use?
You are developing a Silverlight 4 application.
The application contains an Image control to display an image. You need to modify the application to display the image on its side. Which XAML fragment should you use?
Which XAML fragment should you use?
You are developing a lineof-business application by using Silverlight 4. The application will be used for data entry and reporting purposes. You need to implement a DataGrid control that will allow editing of bound data. Which XAML fragment should you use?
Which XAML fragment should you use?
You are developing a Silverlight 4 application.
The application contains the following XAML fragment.
<ComboBox Style=”{StaticResource ComboBoxTemplate}” />
You need to add a custom control template to the ComboBoxTemplate style for the ComboBox control. Which XAML fragment should you use?
Which XAML fragment should you use?
You are developing a Silverlight 4 application. The following ControlTemplate has been defined as a Resource. <ControlTemplate TargetType=”TextBox” x:Key=”TextBoxTemplate”>
<! custom code… >
</ControlTemplate>
You need to set a TextBox control to use the resource. Which XAML fragment should you use?
Which XAML fragment should you use?
You are developing a Silverlight 4 application. You define a style according to the following XAMLfragment.
<Style TargetType=”Button”>
<Setter Property=”Width” Value=”75″ />
<Setter Property=”Height” Value=”23″ />
</Style>
You need to implement a new button that will override this style by using the default Silverlight style.
Which XAML fragment should you use?
Which XAML fragment should you use?
You are developing a Silverlight 4 application.
You need to create an implicit style for a ComboBox that specifies the following settings:
FontFamily = Verdana
Foreground = Green
Which XAML fragment should you use?
Which XAML fragment should you use?
You are developing a Silverlight 4 application. You need to add a MediaElement control that handles when the media has finished playing. Which XAML fragment should you use?
Which XAML fragment should you insert at line 10?
You are developing a Silverlight 4 application.
The application defines the following XAML fragment. (Line numbers are included for reference only.)
01 <Grid x:Name=”LayoutRoot”>
02 <sdk:Frame x:Name=”ContentFrame” Source=”/Home”>
03 <sdk:Frame.UriMapper>
04 <sdk:UriMapper x:Name=”ContentMapper”>
05 <sdk:UriMapping Uri=”/{pageName}” MappedUri=”/Views/{pageName}.xaml”/>
06 </sdk:UriMapper>
07 </sdk:Frame.UriMapper>
08 </sdk:Frame>
09 <Grid>
10
11 </Grid>
12 </Grid>
You need to define a hyperlink that navigates to a resource within the Frame. Which XAML fragment should you insert at line 10?