Does anyone know how to assign a string to a textblock?
e.x. I have a string, with variable content, and a textBlock. The text of the textBlock should always match the content of the string.
string number;
public MainPage()
{
//the textBlock text should now be "1"
number = "1";
//the textBlock text should now be "second"
number = "second";
}
I tryed to do this automatically with bindings, but I couldn't find a solution.
regards, Cristian