I'm writting a WPF program.And now i have some problems. There is a Window including a frame, with two Buttons named A and B.
Within the frame there is a Page that has a Button C.
The question is: how can I have the A button's event handler fire when i click the C Button in the Page?
Frame xaml:
<Frame x:Name="Frame1"
NavigationUIVisibility="Hidden"
Margin="-50,0,-163,-11"
Grid.RowSpan="2">
</Frame>
Event handlers:
private void button1_Click(object sender, RoutedEventArgs e)
{
PageFind p = new PageFind();
this.Frame1.Content = p;
}
private void button2_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Succeed!!")
}