简体   繁体   中英

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: 在此处输入图片说明

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM