Wednesday, 15 July 2015

c# - Prevent mouse events during wpf Window.OnActivate -



c# - Prevent mouse events during wpf Window.OnActivate -

is possible prevent mouse events when window activated?

for example, have c# window , alter focus else such browser. when reactivate c# window clicking on it, don't want mouse events executed. first click on window should activate it. mouse events fired if window activated.

an event fired user clicks on wpf controll why don't handle event?

subscribe event , prevent bubble visual tree:

private void panel_keydown(object sender, keyeventargs e) { e.handled = true; }

have @ link describes event bubble , tunneling in wpf.

c# wpf

No comments:

Post a Comment