DRAG DROP
You are developing a dependency property named TotalAmount for a Windows Store app.
The TotalAmount property must default to zero. The class that contains the TotalAmount
property must provide a class property that gets and sets the value of the dependency
property.
You need to create the dependency property and the class property.
You have the following code:
Which code snippets should you insert in Target 1, Target 2, and Target 3 to complete the
code? (To answer, drag the appropriate code snippets to the correct targets in the answer
area. Each code snippet may be used once, more than once, or not at all. You may need to
drag the split bar between panes or scroll to view content.)
Explanation:
Note:
* DependencyProperty PropertyMetadata
Dependency property metadata exists as an object that can be queried to examine the
characteristics of a dependency property. This metadata is also accessed frequently by the
property system as it processes any given dependency property
new PropertyMetadata(Od)
return (double GetValue(TotalAmountProperty)
SetValue(TotalAmounyProperty, value)