Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main Window isn't displayed when setting WindowState to FullScreen before first render #4006

Closed
comet56us opened this issue May 27, 2020 · 2 comments

Comments

@comet56us
Copy link

Setting WindowState=FullScreen on my main window anytime before it is first rendered is causing it to never render. If I instead set the WindowState in the Render() override, or anything that happens after that, it works as expected.

I'm running on Windows 10.

The Window is set up with the boilerplate code:

public override void OnFrameworkInitializationCompleted()
{
   if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
   {
      desktop.MainWindow = new MainWindow
      {
         DataContext = new MainWindowViewModel(),
      };
   ...

The Window starts with a Grid with a few controls, one of which starts some Animations immediately. It also has some resources and styles.

@danwalmsley
Using nightly build 0.9.999-cibuild0007800-beta

@mgnslndh
Copy link
Sponsor Contributor

This isssue covers the same problem as #4204 and that one has been closed because the issue is fixed. Having WindowState=FullScreen in XAML works fine on Avalonia 11.0.4 Windows Desktop.

Perhaps this issue can be closed? @comet56us @danwalmsley

@timunie
Copy link
Contributor

timunie commented Sep 23, 2023

Closing this as outdated. Please ping me if reproducible in 11.0

@timunie timunie closed this as completed Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants