I have this XAML code...
<Grid>
<TextBox Height="23" HorizontalAlignment="Left" Margin="74,78,0,0" x:Name="textBox1" VerticalAlignment="Top" Width="120" />
<Button x:Name="button1" Content="A" Height="23" HorizontalAlignment="Left" Margin="12,156,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click"></Button>
<Button x:Name="button2" Content="B" Height="23" HorizontalAlignment="Left" Margin="93,156,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click"></Button>
<Button x:Name="button3" Content="C" Height="23" HorizontalAlignment="Left" Margin="174,156,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click" />
<Button x:Name="button4" Content="D" Height="23" HorizontalAlignment="Left" Margin="12,200,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click" />
<Button x:Name="button5" Content="E" Height="23" HorizontalAlignment="Left" Margin="185,228,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click" />
</Grid>
And this XAML.CS code.....
private void button1_Click(object sender, RoutedEventArgs e)
{
Button button = sender as Button;
button.Content.ToString();
textBox1.Text = button.Content.ToString();
}
Now, when I press the button, only one character is being displayed. Still using my current XAML.CS code, how do continue from here in order to get multiple characters when the buttons are pressed multiple times??