PrepAway - Latest Free Exam Questions & Answers

Tag: 70-511

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

What should you do ?

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

The user control contains a button. Both the user control and the hosting control must receive the button click event.

You need to ensure that the user control responsd to the button click event before hosting control responds to the event.

What should you do ?

Which markup segment should you insert at line 05 ?

You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory.

List box’s ItemsSource property has decimal and string types. Decimals represent price and strings represents the folowing markup is defined as follows.

<Window xmlns:clr=”clr-namespace:System;assembly=mscorlib”>
<ListBox ItemsSource=”{Binding}”>
<ListBox.Resources>

</ListBox.Resources>
</ListBox>
</Window>

You need to ensure that data templates are used to format the strings without changes and the decimals as ..

Which markup segment should you insert at line 05 ?

What should you do ?

You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer’s name, address, and phone number.

You have been asked to provide data validation in a DataGridView to prevent users from leaving the..

You need to ensure that users cannot tab out of the name field without entering data

What should you do ?

What should you do ?

….
set
{
_Data = value;
}
}

private void NofityPropertyChanged(string info)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}

The UI is not being updated when the Data property is set.

You need to ensure that the DisplayData class correctly updates the UI when the Data ..

What should you do ?

What should you do ?

You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List<T.. class named Lead. The Lead class contains the properties Title and Revenue.

You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemsSource property to Leads as follows.

ICollectionView Leads;
public MainWindow()
{
IntializeComponent();
Leads = CollectionViewSource.GetDefaultView(
new List<Lead>(
new Lead[]
{
new Lead() { Title = “Title1″, Revenue=”1234.33”},
new Lead() { Title = “Title2″, Revenue=”1234.33”},
new Lead() { Title = “Title3″, Revenue=”1234.33”},
new Lead() { Title = “Title4″, Revenue=”1234.33”},
new Lead() { Title = “Title5″, Revenue=”1234.33”}
}
));

dgQualifiedLeads.ItemsSource = Leads;
}

You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue …

What should you do ?


Page 3 of 1312345...10...Last »