nerdexam
Microsoft

70-511 · Question #227

You are developing a Windows Presentation Foundation (WPF) application. Users can enter formatted percentages into text boxes. The markup is as follows. <TextBox Text="{Binding Path=Percentage…

The correct answer is B. Public Function ConvertBack{. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application. Users can enter formatted percentages into text boxes. The markup is as follows. <TextBox Text="{Binding Path=Percentage, Converters StaticResource PercentValueConverter}}" /> Percentage is a decimal property. You need to store the percentages as their decimal values, not their display values. Which code segment should you use?

Options

  • APublic Function Convert (
  • BPublic Function ConvertBack{
  • CPublic Function Convert (
  • DPublic Function ConvertBack(

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    74% (37)
  • C
    8% (4)
  • D
    14% (7)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice