Permalink
Browse files

Add click event

for #4
  • Loading branch information...
takkyuuplayer committed Dec 9, 2013
1 parent bcec539 commit 2e0d37f612ec4e9f74bdb8d311e1596d3e057c68
Showing with 6 additions and 1 deletion.
  1. +1 −1 Merry Xmas/MainPage.xaml
  2. +5 −0 Merry Xmas/MainPage.xaml.cs
@@ -50,7 +50,7 @@
<TextBlock Text="What's your name?"/>
<StackPanel Orientation="Horizontal" Margin="0,20,0,20">
<TextBox x:Name="nameInput" Width="300" HorizontalAlignment="Left"/>
<Button Content="Say &quot;Merry X'mas!!&quot;"/>
<Button Content="Say &quot;Merry X'mas!!&quot;" Click="Button_Click"/>
</StackPanel>
<TextBlock x:Name="greetingOutput"/>
</StackPanel>
@@ -102,5 +102,10 @@ protected override void OnNavigatedFrom(NavigationEventArgs e)
}
#endregion
private void Button_Click(object sender, RoutedEventArgs e)
{
greetingOutput.Text = "Merry X'mas!! " + nameInput.Text + "!";
}
}
}

0 comments on commit 2e0d37f

Please sign in to comment.