Last active
August 29, 2015 14:02
-
-
Save tmyt/f99cc0b1e227df595161 to your computer and use it in GitHub Desktop.
いまにゅーにお昼きかれたやつ、こうすればいいんじゃないん、って思ったやつ(その2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackPanel> | |
<local:MyControl Button.Click="ButtonClick" /> | |
<Grid x:Name="HogeGrid" Visibility="Collapsed" /> | |
</StackPanel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainPage : Page | |
{ | |
public MainPage() | |
{ | |
InitializeComponents(); | |
} | |
public void ButtonClick(object sender, RoutedEventArgs args) | |
{ | |
HogeGrid.Visibility = Visibility.Visible; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Button x:Name="Button 1" Content="Button 1" Click="ButtonClick" /> | |
<Button x:Name="Button 2" Content="Button 2" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyControl : UserControl | |
{ | |
public MyControl() | |
{ | |
InitializeComponents(); | |
} | |
public void ButtonClick(object sender, RoutedEventArgs args) | |
{ | |
args.Handled = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment