how can i get the type of a widget? when iterating through a list of widgets, i need to know if its a button, textblock etc.
all my widgets have a type prefix in their name, so i could use GetDisplayName. but i wonder if there is a better way, that doesnt rely on the name.