I’m just thinking off the top of my head here…
Your dictionary<UiElement, Double> has a list of keys and values, and you can get that list with .Keys.
So if you run it through a For Each, then it would look like this:
For each key In dict.Keys //TypeArgument: UiElement (I think)
which will loop through each key and is of type UiElement.
To get the value, you just use the key with the dictionary variable.
To get the “aaname”, you can just use the key that is being looped.
For each key In dict.Keys
name = key.Get("aaname").ToString
value = dict(key)
I apologize if I did that wrong, but hope it gets you in the right direction.