I\'m running into an unusual problem in my unit tests. The class I\'m testing creates a dependency property dynamically at runtime and the type of that dependency property c
If we register name for a Label like this :
Label myLabel = new Label(); this.RegisterName(myLabel.Name, myLabel);
We can easily unregister the name by using :
this.UnregisterName(myLabel.Name);