this question has answer here:
- frameworkelement.name problem 2 answers
im sure simple , stupid question, cant seem figure out why following code not working when tab.name expecting string assigned it.
i trying assign guid.tostring()
tabitem.name
tabitem tab = new tabitem(); tab.name = id.tostring(); //id guid
i following error
"1db465a3-b8f2-4cb9-a72d-1bc83c3861ab" ist kein gültiger wert für die eigenschaft "name".
from frameworkelement.name page on msdn:
the string values used name have restrictions, imposed underlying x:name directive defined xaml specification. notably, name must start letter or underscore character (_), , must contain letters, digits, or underscores. more information, see wpf xaml namescopes.
Comments
Post a Comment