which order should the binding stack be configured?
You are creating a Windows Communication Foundation (WCF) service. You have the following requirements:
* Messages must be sent over TCP
* The service must support transactions.
* Messages must be encoded using a binary encoding
* Messages must be secured using Windows stream-based security.
You need to implement a custom binding for the service. In which order should the binding stack be configured?
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?
A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.
You must ensure that the client application can interact with the WCF service. 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 ?
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 ?
Which code segment should you use at line 10?
You are working with a Windows Communication Foundation (WCF) client application that has a generated proxy named SampleServiceProxy.
When the client application is executing, in line 04 of the following code, the channel faults (Line numbers are included for reference only.)
01 SampleServiceProxy proxy = new SampleServiceProxy();
02 try
03 {
04 proxy.ProcessInvoice(invoice);
05 }
06 catch
07 {
08 if(proxy.State == CommunicationState.Faulted)
09 {
10 …
11 }
12 }
13 proxy.UpdateCustomer(customer);
You need to return proxy to a state in which it can successfully execute the call in line 13.
Which code segment should you use at line 10?
Which markup segment should you use ?
<TextBlock Text=”{Binding Path=PhoneNumber, Converter={StaticResource PhoneFormatConverter}}”>
You need to ensure that phone numbers are displayed in the following format : (###) ### – ###
Which markup segment should you use ?
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 ?
Which class should you use?
You are building a client for a Windows Communication Foundation (WCF) service.
You need to create a proxy to consume this service. Which class should you use?