AdditionOperator

May 24 2018 4:49 AM
I want add the object 1 + object inside my Button clicked 
How do I go about it  
CODE IN XAML
<TextBox x:Name="object1" HorizontalAlignment="Left" Height="62" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="106" Margin="56,63,0,0" FontSize="16" BorderThickness="3"/>
<TextBox x:Name="object2" HorizontalAlignment="Left" Height="62" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="106" Margin="303,63,0,0" FontSize="16" BorderThickness="3"/>
<TextBox x:Name="Screen" HorizontalAlignment="Left" Height="62" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="166" Margin="155,225,0,0" FontSize="16" BorderThickness="3"/>
<Button Content="=" HorizontalAlignment="Left" VerticalAlignment="Top" Width="86" Height="43" Margin="193,146,0,0" Click="Button_Click"/>
 
CODE IN XAML.CS
private void Button_Click(object sender, RoutedEventArgs e)
{
Screen.Text = Screen.Text + "=";
}
 

Answers (1)