I'm fairly new to WPF.
Suppose I defined an int dependency property. The purpose of the DP is to return the value+1 (see code). In .Net 2.0 I would have written:
private int _myValue = 0;
public int MyValue
{
get { return _myValue + 1; }
set { _myValue = value; }
}
How would you declare a DP that achieves similar behavior?
The Coercion that was offered works only for the Set operation. I would like to modify the Get result.