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

I want to set the window to full screen, how to do it ? #2299

Closed
hccoo opened this issue Feb 13, 2019 · 6 comments
Closed

I want to set the window to full screen, how to do it ? #2299

hccoo opened this issue Feb 13, 2019 · 6 comments

Comments

@hccoo
Copy link

hccoo commented Feb 13, 2019

I want to set the window to full screen, how to do it ?

Now I have an winform app on windows developped by .net framework, I want to refactoring it with .net core and avalonia. But I encounter a problem that can not set the window to full screen.

@danwalmsley
Copy link
Member

HasSystemDecorations=false and WindowState=Maximized

@hccoo
Copy link
Author

hccoo commented Feb 14, 2019

HasSystemDecorations=false and WindowState=Maximized

Thank you very much for your reply, I set the property according to your reply, the title is hide, but the windows' task bar cannot hide. Can make the task bar hide also?

@jmacato
Copy link
Member

jmacato commented Feb 14, 2019

@hccoo try setting your Window's Topmost property to true in addition to the prior properties.

@hccoo
Copy link
Author

hccoo commented Feb 15, 2019

@jmacato Thank you very much. Now I

@hccoo hccoo closed this as completed Feb 15, 2019
@danbulant
Copy link

@danwalmsley sorry if I'm wrong, but isn't that just borderless, not fullscreen?

@ahopper
Copy link
Contributor

ahopper commented Sep 26, 2020

In recent releases there is now WindowState.FullScreen to do this.

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

5 participants