I want to a WPF project in c# and I want in my MainWindow interface to add a textbox. I use toolbox to add textBox field and with view code I found the following function:
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
}
How can I change the default value of the textBox? The only thing the is generated when I add the Textbox was this function. Which variable is responsible for the text? EDIT: I am trying to modify a WPF application which is provided with the kinect SDK. It seems that is not that straight-forward. When I tried to right click on the textBox I cant see any properties option. Inside MainWIndow.xaml.cs there is a line with the property of the textbox:
<TextBox HorizontalAlignment="Left" Height="23" Margin="540,3,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="120" TextChanged="TextBox_TextChanged" Grid.ColumnSpan="3"/>
However I cant find the name of the textbox anywhere.