Newbie question... Can someone help me to understand casting? I've been through the tutorials but still don't have a grip on it. Thanks.
Solved! Go to Solution.
Solved by Sean_Page. Go to Solution.
I saw this the other week but maybe from below more will understand a specific benefit of not casting:
Element.Name = Read/Write property
ElementType.Name = WriteOnly property
Everything that then inherits from ElementType e.g. FamilySymbol gets the same limited property access.
Would also suggest overriding .ToString with Name since .ToString is the final fall back in WPF binding. Suggestion as idea added below.
Can't find what you're looking for? Ask the community or share your knowledge.