it builds a window tab with a grid. in that grid I have an accountSelector and also a textblock.
I would like to update the textblock with the cashvalue of the selected account at the time of the window loading and also when there is a change of the account
I can get the cashvalue with :
accountSelector.SelectedAccount.Get(AccountItem.Ca shValue,Currency.UsDollar).ToString()
and I can use the AccountSelector_SelectionChanged Event Handler to update the text value.
Question 1 - how exactly do I change the myTextBlock.text to the above value ?
because the myTextBlock is not recognized in the context of the AccountSelector_SelectionChanged event handler.
Question 2 - what event handler should I use for the initial update? it needs to be after the grid is built and populated with values.
cant be the window_Loaded or something like that , does it ?
Comment