Possible duplicate:
Is it possible to use setter to return a property to its default value?
Okay ... I know in the code, I can call ClearValue to clear or "undo" the dependency property, and of course I know I can set the dependency property in the trigger, but (... and I'm sure you can see where this happens ...) can you use a trigger to clear the value ??
Now I have asked several of my employees, and they just keep saying: "Set it to zero!" but this is NOT the same as you are not clearing the DP, you would set the DP value to zero! Not the same!
So ... how do you clear the DP in the trigger ?! I was thinking of just writing a XAML extension to do this for me (I can’t use the converter because it only returns a value), but I hope that the good people from MS have already thought about this!
So any participants?
source
share