I donβt think there is a direct event handler defined for Up or Down events. The only thing we could do is handle the MouseDown event and check the status of MiddleButton so that
void Window1_MouseDown(object sender, MouseButtonEventArgs e) { MessageBox.Show(e.MiddleButton.ToString()); }
source share