Hi,
I am trying to use the feature 'name interactive elements' from Expression Blend 4 to name all the unnamed ui elements automatically. I am not able to do this on xamgrid, but works on framework controls. Is this a know issue or i am missing something here? Many thanks! Chan.
Not that surprised! I was thinking the xamgrid for instance would have silverlight grid as it's base and therefore get detected. I will look that up in the object explorer. Thanks Devin for the quick response!
So I asked MSFT and according to them, the "name interactive elements" feature of Blend looks for a hard coded set of control bases classes that they know are interactive, like ButtonBase. Most, if not all of our controls derive from Control, so Blend won't give a name to them, there is currently nothing we can do to tell this feature of Blend about our controls.
Devin
I am creating coded Ui tests using vs2010 which require names for the controls.
Chan:
Are you naming elements just to give them names, or is there a reason you want to name all unnamed elements? If its the former, then I would advise against doing that as there is both a memory and performance cost:
http://10rem.net/blog/2010/07/02/silverlight-wpf-dont-name-elements-unless-you-have-to-why-xnaming-everything-is-bad
If you need to name them for a reason, I would love to know why.