Skip to content

Avalonia application keeps stealing focus from other applications #16023

Answered by TangDave
TangDave asked this question in Q&A
Discussion options

You must be logged in to vote

Found the problem - it is definitely different behavior from WinForms.
A dialog was used for one of the sub-processes - this flashes up briefly to indicate what work is being done - it is closed when the sub-process is complete. In WinForms this doesn't steal the focus - if the user is working in another application they would not be forced to see the dialog. Avalonia apparently forces the application to have the focus if any dialog is shown.

This is not a typical user scenario for our applications - it's more of an issue for our own testing, but we can work around it by omitting the briefly-showing dialog during testing.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TangDave
Comment options

Answer selected by TangDave
@maxkatz6
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants