I'm coding in C++ XAML to make a windows 8 store app.
Now, there are two objects in my main window: a textBox and a textBlock.
What i want to do is that the user will write an equation in the textBox and the textBlock will show all the literals in that equation. The textBlock should keep updating as soon as the user changes the data, without the user pressing enter or clicking another button or something.
What i'm trying to do is, the Text in the textBlock will be equal to a string that the function "return_literals" returns. "return_literals" will take Text from the textBox as soon as the text is changed by the user and process it to return literals.
The problem is, i don't know how to pass or recieve data from a function in xaml. Please tell me how to accomplish this task.
Thanks in advance :)