Dictionary of UiElements

Hi,

I made a dictionary (of UiElement, String). The UiElements are buttons. After finishing the dictionary I use a for each to loop through the key pairs of this dictionary. The meaning is clicking on a button (dictionaryElement.key) so it navigates to the next page and using than the string element (dictionaryElenment.Value) and then return back to proceed the next dictionary keypair.
For the first value everything works fine, but for the second value I get an error saying that the UiEelent is no longer valid.

When creating the dictionary I already checked with an highlight activity if I have inserted the right elements and yes I did.

So I don’t really understand why it does not work for the next items in my dictionary??

thanks!

hi,

Please follow the tutorial,

thanks,
Karthik.