I have a string value held in a label in an XAML page I am using. When the user opens up a new Silverlight child window, I want to be able to use that string value in the new window. I tried the following-
firstWindow FW = new firstWindow();
string textValue = FW.textBox1.Text;
This does not work however because it is creating a new instance of the firstWindow, where the textbox has no text yet. How can I get the string value after I have opened up the new child window? Thanks in advance.
Create a public property on the Child Window codebehind and set that value in the Parent Window after instantiating and before showing the Child Window.