microsoft / XboxGameBarSamples

Sample code for Xbox Game Bar Widgets
https://developer.microsoft.com/games/products/game-bar/
MIT License
145 stars 27 forks source link

[Feature request] Fullscreen-mode/setting size, position and "pinned" state of the widget #93

Open slize-it opened 3 years ago

slize-it commented 3 years ago

Is your feature request related to a problem? Please describe. I cannot get my widget in true fullscreen mode - the top center navigation bar is blocking my manual resize actions and the title bar of the widget itself prevents it from getting sized to the full height of the screen.

Describe the solution you'd like

1 Add an option "Fullscreen"

2 Use Z order to keep the top center menu above everything else but please dont block other windows

3 An API for setting the widget size and pinned state

Describe alternatives you've considered Bytepatching 'TryResizeWindowAsync', manual setting the height and width by getting a reference from the private member variable of the 'XboxGameBarWidget' instance.

vidager commented 3 years ago

Hi slize26,

Thank you for the feedback.

Full screen We currently don't support full screen widgets for both technical and security reasons. We may be able to support this in the future with some technical changes we hope to make as well as exploring some security mitigations (such as user consent).
We have opened a tracking workitem internally for this though: VSO Task: 31952018

Widget size As you already mentioned, we do have an API for this: TryResizeWindowAsync. It lets you resize within the bounds you've specifed for your min/max height/width. But yes, you can't size larger than the space available to you without occlusion from the Home Bar.

Widget pinned state In our current UX design pinning is something we only allow users to do. We have opened an internal task to consider programmatic support. VSO Task: 31953225

Thanks, Ben