You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You perform the following two tasks:
Use a digital certificate that is generated by an internal certificate authority (CA) to sign the application.
Store the application files on a central Web site.
You instruct the users to access the Web site and start the application by using the ClickOnce technology. The users report that their attempts to start the application fail.
You need to ensure that the users can use the application.
What should you do?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You create an XAML page named Inventory Management for the application.
You add a bound TextBox control named txtSetInventoryLevel to the page. The TextBox control is set to explicitly update the data source.
You add the following method to update the inventory level.
01 private void UpdateInventoryLevel(int quantity)
02 {
03 ...
04 }
You need to ensure that the changes made in the txtSetInventoryLevel TextBox control are reflected in the data source.
Which code segment should you insert at line 03?
You are creating a Windows Presentation Foundation application to track inventory levels.
You use Microsoft .NET Framework 3.5 to create the application. You need to create a Product class to propagate changes from the InventoryLevel property to the InventoryLevel label control.
Which code segment should you use?
You are creating a Windows Presentation Foundation application. You create the application by using Microsoft
.NET Framework 3.5.
You create a window that has two tabs for the application. You associate the following XAML code fragment with the tab control that contains the two tabs.
You add a property named Index to the PetSelection class. You need to ensure that when the user clicks a tab, the SelectedIndex property value of the tab control is transferred to the Index property of the myPetSelection object.
Which XAML code fragment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a CheckBox control named checkBox1 and a TextBox control named t1. The application contains the following code segment.
public class CheckBoxToColorConverter : System.Windows.Data.IValueConverter
{
public object Convert(object valueIn, System.Type targetType, object parameter,
System.Globalization.CultureInfo culture)
{
bool isChecked = Convert.ToBoolean(valueIn) ;
switch (isChecked)
{
case true:
return "Green";
default:
break;
}
return "Red";
}
}
You write the following code fragment.
01
02
03
07
08
09
10 Check For Green
11
You need to ensure that when checkBox1 is in the selected state, the background of t1 changes to red.
Which code segment should you insert at line 09?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application includes the following features:
A data provider control.
Twenty TextBox controls bound to the data provider.
A Submit button that saves the TextBox values to a data source.
Business rules state that the value entered in the UserName TextBox control cannot be the same as any other
UserName values in the data source.
You need to provide feedback to the user as early as possible when a duplicate value is entered in the
UserName TextBox control.
What should you do?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a class named Place that has the following attributes:
CityName: a string value that represents the name of a city
State: a string value that represents the name of a state
The application also has a collection of Place objects named places.
You need to create a Collection View on the places collection that meets the following requirements:
The view is grouped by the state name.
The view is sorted by the city name.
Which XAML code fragment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You need to display the title of the page in a TextBlock control that is placed at the top of a page.
Which XAML code fragment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a data source and a TextBox control named txtUnitPrice. The Text property of the txtUnitPrice control is bound to the data source by using two-way binding. You write the following code segment.
01 private void OverridePrice(decimal newPrice)
02 {
03
04 txtUnitPrice.Text = newPrice;
05 }
You need to ensure that after the OverridePrice method is called, changes to the data source do not propagate to txtUnitPrice.
Which code segment should you insert at line 03?