locked
[UWP]Fullscreen titlebar controls for CoreWindow, UWP/Win10 apps, possible? RRS feed

  • Question

  • Hello,

    I am doing work to improve the ability to toggle fullscreen in some CoreWindow-based, UWP/Win10 games.  When a CoreWindow (non-XAML), Win 8.x Store App is run on Windows 10, it shows a button in the app's titlebar, which can be used to toggle fullscreen-mode in the app.  The same apps, when updated to Win10/UWP, do not show any such button.  From what I can tell, additional controls can be added to the title bar of XAML apps, but I have been unable to find any info on whether or not this is possible in non-XAML/CoreWindow based apps.

    Is it possible to add a full-screen toggling control to the titlebar of a Win10/UWP game?  This was a nice feature for apps compiled against the Win 8.x SDKs, and it seems that it would be a shame to lose this ability when porting said apps to Win10.  Unfortunately, in many cases, porting these apps to use the XAML framework seems like it would be difficult, due to differences in how CoreWindow apps and XAML apps deal with event-processing.

    Cheers,

    -- David L.


    Tuesday, December 22, 2015 6:35 AM

Answers

  • The full screen button for Windows 8 apps is a back combat feature since Windows 8 apps weren't designed to run in Windows. Windows 10 apps should be aware of that and prepared to run windowed. You can add your own full-screenifying controls to a Windows 10 app if needed. Xaml isn't relevant here. You can call https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.core.coreapplicationviewtitlebar.extendviewintotitlebar.aspx then draw into the title bar area from DX.
    Wednesday, December 23, 2015 6:29 AM

All replies

  • Hello,

    Welcome to the Developing Universal Windows apps forum!

    As a friendly reminder please make sure to add the appropriate tags to the title of your post as per Guide to posting: subject line tags

    Could you please tell me what do you mean about the non-XAML app? Do you mean that you have created all your UI in code behind by using C#/VB/C++ or DirectX? If you app is the DirectX/non XAML UWP app, please try to check the following similar thread:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/76543875-2725-43ed-9df9-04fe82b0176f/uwpwindows-10-titlebar-fullscreen?forum=wpdevelop .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, December 23, 2015 6:11 AM
  • The full screen button for Windows 8 apps is a back combat feature since Windows 8 apps weren't designed to run in Windows. Windows 10 apps should be aware of that and prepared to run windowed. You can add your own full-screenifying controls to a Windows 10 app if needed. Xaml isn't relevant here. You can call https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.core.coreapplicationviewtitlebar.extendviewintotitlebar.aspx then draw into the title bar area from DX.
    Wednesday, December 23, 2015 6:29 AM
  • Hi Amy + Rob,

    Thanks for the info on this.  I'll give this a shot.  Getting good title bars into some C++ based, DirectX apps, is my goal here.  :-)

    If any other problems come up with this, I'll plan on starting a new post.  In the meantime, this answers my question.

    Cheers!

    -- David L.


    • Edited by DavidLudwig Wednesday, December 23, 2015 7:28 AM
    Wednesday, December 23, 2015 7:28 AM