I think what is happening is that the Button is getting focus, which causes WPF (by default) to make sure that the focused element is in the viewport. This post might be useful: Centralizing screen when clicking on a node
I think what is happening is that the Button is getting focus, which causes WPF (by default) to make sure that the focused element is in the viewport. This post might be useful: Centralizing screen when clicking on a node