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)- A4% (2)
- B74% (37)
- C8% (4)
- D14% (7)
Community Discussion
No community discussion yet for this question.