Giving up on proper bring to foreground functionality as it need uiAccess.
Using uiAccess will require another deployment tool than ClickOnce.
     1 <?xml version='1.0' encoding='utf-8'?>
 
     2 <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
 
     4     <Profile Name="(Default)" />