Fadi Banna
Fadi Banna

Reputation: 554

Allow users to enter fullscreen mode in UWP App made with Unity

So I've been facing a really strange problem, I'm making a UWP App using unity the app is set to go fullscreen when it starts and this works fine, except when I exit fullscreen mode using the button at the top: enter image description here

for some reason I can't get back to fullscreen again,the full screen button turns into the maximize minimize button. Is there a way to control which options appear there I tried to search every where but couldn't find a solution.

Thanks

Upvotes: 1

Views: 960

Answers (1)

Michael Puckett II
Michael Puckett II

Reputation: 6749

This is the default style for UWP apps when they are in full screen. It will automatically add the button (to remove it from full-screen) and remove the button (when it's not in full-screen). Users can enter full-screen by pressing Shift + Win + Enter or you can put them in full-screen programmatically.

If you want a button to allow them to go to full-screen easier then you will have to write your UI to accomplish that. Some apps overwrite the title-bar while others just give the option via context etc.

To use a custom title bar look into:

CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar

and also

Window.Current.SetTitleBar

Upvotes: 2

Related Questions