这才是XAML中写代码,不会的看如下,Easy! Easy! Easy!
```xaml<Grid>
<Button Click="Button_Click2">Read</Button>
<x:Code>
private void Button_Click2(object sender, RoutedEventArgs e)
{
MessageBox.Show("1234");
}
</x:Code>
</Grid>