While creating a WPF control I searched for GetTemplateChild only to find that the help file says "Do not use. Use FindName instead".
Well, being a good developer used to following advice, I did just that and my control stopped working immediately.
I think in reality the help file should say use FindName unless you're trying to find a PART in your own custom control then you should definitely use GetTemplateChild.
No comments:
Post a Comment