Are you meaning to make a NEW window, then change that window's textbox?
Or are you meaning to change the text of your current window's textbox.
What exactly *is* the problem? Text not changing or window not showing? Because you are making a new window but haven't directed it to be shown.
// name of my WPF window
SWindow sw=new SWindow();
//name of textbox in WPF Window