Which XAML fragment should you insert at line 06?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4. You add the following XAML fragment. (Line numbers are included for reference only.)

01 <Grid x:Name=”LayoutRoot”>
02 <Grid.ColumnDefinitions>
03 <ColumnDefinition />
04 <ColumnDefinition />
05 </Grid.ColumnDefinitions>
06
07 </Grid>

You need to add a Button control inside the second column of the Grid control. You also need to set the content and the tooltip of the Button control to Send and Send document, respectively. Which XAML fragment should you insert at line 06?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4. You add the following XAML fragment. (Line numbers are included for reference only.)

01 <Grid x:Name=”LayoutRoot”>
02 <Grid.ColumnDefinitions>
03 <ColumnDefinition />
04 <ColumnDefinition />
05 </Grid.ColumnDefinitions>
06
07 </Grid>

You need to add a Button control inside the second column of the Grid control. You also need to set the content and the tooltip of the Button control to Send and Send document, respectively. Which XAML fragment should you insert at line 06?

A.
<Button Grid.Column=”1″>
<ToolTipService.ToolTip>
<ToolTip>Send document</ToolTip>
</ToolTipService.ToolTip> Send
</Button>

B.
<Button>
<ToolTipService.ToolTip>
<ToolTip>Send document</ToolTip>
</ToolTipService.ToolTip> Send
</Button>

C.
<Button Grid.Column=”1″>
<Canvas>
<ToolTip>Send document</ToolTip>
<TextBlock>Send</TextBlock>
</Canvas>
</Button>

D.
<Button>
<Canvas>
<ToolTip>Send document</ToolTip>
<TextBlock>Send</TextBlock>
</Canvas>
</Button>



Leave a Reply 0

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