Microsoft
70-511 · Question #49
You are developing a Windows Presentation Foundation (WPF) application. This application will be used to display customer data to customer service representatives. Phone numbers are stored as…
The correct answer is B. public object Convert (object value. Type targetType. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. This application will be used to display customer data to customer service representatives. Phone numbers are stored as ten-digit numbers in the database. The markup is as follows. <TextBlock Text="{Binding Path=PhoneNumber, ConvertersStaticResource PhoneFormatConverter}}" /> You need to ensure that phone numbers are displayed in the following format: (###) ### - #### Which markup segment should you use?
Options
- Apublic object Convert (object value, Type targetType,
- Bpublic object Convert (object value. Type targetType,
- Cpublic object ConvertBack(object value, Type targetType,
- Dpublic object ConvertBack(object value, Type targetType,
How the community answered
(31 responses)- A13% (4)
- B77% (24)
- C3% (1)
- D6% (2)
Community Discussion
No community discussion yet for this question.