PrepAway - Latest Free Exam Questions & Answers

Category: 70-511

Exam 70-511: TS: Windows Applications Development with Microsoft .NET Framework 4

Which code segment should you add to the click event handler of the Button control ?

You are developing WPF application for managing student information… btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml properties : FirstName and LastName. You create the following code segment in the constructor of..

Students = new List<Student>(
new Student[]
{
new Student() { FirstName = “Nicole”, LastName = “Holiday” },

}
);

The DataGrid control displays the list of students unsorted.

You need to ensure that the list of students is sorted by last name.

Which code segment should you add to the click event handler of the Button control ?

You need to ensure that the TextBlock control with the contents "Product shipped" is horizontal cent

Grafic displayed.
<Grid.Columndefinitions>
<Columndefinition>
<Columndefinition>
</Grid.Columndefinitions>

<Grid.Rowdefinition>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.Rowdefinition>

<TextBlock Grid.Row=”0″ HorizontalAllignment=”Center”>Product shipped</TextBlock>

When the application si run, it appears as follows

You need to ensure that the TextBlock control with the contents “Product shipped” is horizontal centered to the grid?

Which mark up segment should you add to the TextBlock control ?

What should you do ?

You are developing and XBAP application for your company intranet. During several development iterations, you manually.. executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a .. manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes..

When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes.

You need to ensure that the changes you make are visible when you test the deployment from your machine.

What should you do ?

What should you do?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a Button control for the application.
You need to ensure that the application meets the following requirements:
When the mouse pointer is over the Button control, the background color of the button is set to red and
the Button control appears bigger.
When the mouse pointer is not over the Button control, the button returns to its original state.
What should you do?

What should you do?

You are developing a Windows Presentation Foundation (WPF) application.

An event triggers a workflow such that a parent control executes the event handlers before the child controls.

You need to ensure that if a parent controls event handler encounters an error, the subsequent handlers are not called.

What should you do?

What should you add to constructor of the main window ?

You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add MediaElement mediaElement1 and a Button control named btnPlayAudio to the design surface. The MediaElement co.. audio file. The LoadedBehavior attribute is set to Manual.

You add the following code to the main Window.

void playCommand_Executed(object sender, RoutedEventArgs e)
{
mediaElement1.Play();
}

You set the command of the button to MediaCommands.Play.

You need to ensure that the application will play the audio file when the button is pressed.

What should you add to constructor of the main window ?


Page 4 of 13« First...23456...10...Last »