I have a Page, inside I generate a few copies of a UserControl. The page is supposed to do stuff
when the UserControl_MouseDown event is fired. Everything works fine until the user clickes
on a part of the UserControl where a Control is present. As you would expect, the Control
prevents the UserControl_MouseDown event to fire.
Page
//Fired when the StackPanel is clicked but not when the TextBox is.
private void UserControl_MouseDown(object sender, MouseButtonEventArgs e)
{
//Do stuff
}
UserControl
<StackPanel>
<TextBox/>
</StackPanel>