Все UIElement имеют метод RaiseEvent (). В этом методе вы можете передать объект MouseEventArgs .
XAML:
<StackPanel Orientation="Vertical">
<Button Name="buttonA" Click="buttonA_Click" Content="ButtonA" Height="25" Width="80"
MouseEnter="buttonA_MouseEnter" Margin="10 5 2 2" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<Button Name="buttonB" Click="buttonB_Click" MouseEnter="buttonB_MouseEnter" Content="ButtonB" Height="25" Width="80" Margin="10 5 2 2"
VerticalAlignment="Center" HorizontalAlignment="Left"/>
</StackPanel>
xaml.cs:
private void buttonA_MouseEnter(object sender, MouseEventArgs e)
{
MessageBox.Show("Message from Button A...! ");
}
private void buttonB_MouseEnter(object sender, MouseEventArgs e)
{
MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, 0);
mouseEventArgs.RoutedEvent = Mouse.MouseEnterEvent;
buttonA.RaiseEvent(mouseEventArgs);
}