First, we greatly appreciate the SplashScreen feature of this project.
We wanted to know if it's possible to suppress Activating the window from the splash screen. There's some styling that occurs in the window and when the window is activated too early some of that styling causes considerable flicker.
private async void Content_Loaded(object sender, RoutedEventArgs e)
{
if (IsAlwaysOnTop)
this.SetIsAlwaysOnTop(true);
else
WindowExtensions.SetForegroundWindow(this);
double h = Height;
double w = Width;
if (Content is FrameworkElement f)
{
if (double.IsNaN(Width) && f.DesiredSize.Width > 0)
w = f.DesiredSize.Width;
if (double.IsNaN(Height) && f.DesiredSize.Height > 0)
h = f.DesiredSize.Height;
}
if (double.IsNaN(w))
w = 640;
if (double.IsNaN(h))
h = 480;
this.CenterOnScreen(w, h);
await OnLoading();
if (_windowType != null)
_window = Activator.CreateInstance(_windowType) as Window;
_window?.Activate(); // Is it possible to suppress / defer this?
this.Close();
_window?.SetForegroundWindow();
Completed?.Invoke(this, _window);
_window = null;
}