I'm working on a Windows UWP (Universal Windows Platform) C++/CX Application. I would like for this application to be full-screen from the moment that it launches, rather than briefly not full-screen and then changed to full-screen later. Does anyone know of a way to achieve this?
Automatic Full-Screen Mode for Windows UWP C++/CX Application
77 views Asked by user2279952 At
2
There are 2 answers
3
Anant Tyagi
On
The ApplicationView.TryEnterFullScreenMode method attempts to switch the application to full-screen mode. You can call this method in the OnActivated event handler of your application's main page.
code
void MainPage::OnActivated(Object^ sender, ActivationArguments^ args)
{
ApplicationView::GetForCurrentView()->TryEnterFullScreenMode();
}
Related Questions in WINDOWS
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in UWP
- How to make that each seller has its own different set of products using sqlite and uwp
- How can i solve SQLITE_IOERR_SEEK on Unreal UWP application on MS Hololens2
- UWP Blank app throws error code: The app didn't start.. Activation phase: COM ActivateExtension
- How can I tell if a control is actually Visible in UWP?
- DEP0700: Registration of the app failed UWP in release mode
- Linker errors when adding a native c++ static library to Windows runtime component (UWP)
- uwp app only accepts input whenever i have opened on conhost/powershell/cmd
- uwp - WebAuthenticationBroker does not show cloudflare captcha
- How do I get the typename of an arbitrary XAML FrameworkElement?
- Apryse PDFTron SetDoc method throws AccessViolationException
- How do you know which items are realized (non-virtualized) in an ItemsRepeater?
- How to copy or drag n drop image from Webview2 to Canvas?
- UWP app Shutdown PC don't work in kiosk mode
- Path denied error when building UWP app in release
- Display Data from Drive D: in the Gridview
Related Questions in VISUAL-STUDIO-2019
- "Visual Studio stopped responding for 12 seconds,uninstalling extension might help" getting this message on installing VSIX and on opening the project
- VS2019 won't build .asm file even with masm.props build customization enabled?
- how to automatically generate a Module from a project in Visual Studio
- Visual Studio Conversion Properties: "set to a value for the first time, but it was already consumed" problem
- How to remove shortcut/alias to a .cpp and .h file from another project in Visual Studio 2019?
- Add connected service only adding reference.cs VS 2019 ASP.net
- Stop Moq NuGet package searching for source
- Visual Studio 2019 Python re-installation
- Viewport namespace missing from SharpDX directive, please assist
- Unable to cross-compile a simple program using MSVC 9
- SSIS Duplicate Enumerators in ForEach Loop
- HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page when running ASP.NET MVC 5 app from VS 2019 & IIS Express
- run/load VS2022 solution / projects with VS2019 gives error about MSBuild versions
- Receiving error when I try to run my ASP.NET MVC web application after I updated to Bootstrap 5.3.3
- Intellisense lists many unnecessary <Extention> methods for objects of type String?
Related Questions in C++-CX
- C++/CX using abstract + final keywords together
- UWP app tries to load packaged native .exe file as C# assembly
- Automatic Full-Screen Mode for Windows UWP C++/CX Application
- C++/WinRT - How to get data from IBuffer
- how to have a User Control inherit from another User Control
- UWP.C++.PhoneCallManager.CallStateChanged Register for My Events
- How to call StartDragAsync from CoreIndependentInputSource Pointer event UWP
- Does C++/WinRT replace C++/CLI?
- How get exception message that occurred inside task C++/CX?
- set value in C++/CX e.g. Box<Color>
- How can I get a progress report from an async write to an output stream?
- Shared memory between Universal Windows Platform (UWP) application and Win32 application
- Using one MediaCapture in multiple CaptureElement.Source
- UWP: When are controls declared final/sealed?
- IBasicVideoEffect with NV12 Subtype
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I found a solution for this issue. I start my
App::OnLaunched()function as follows:The code continually tries to set the window as full-screen, and exits if it cannot achieve this. Then once the window is full-screen, the code sets the preferred minimum window size to the dimensions of the full-screen.
But that's not sufficient, because the application (or more precisely, the splash screen) starts in not-full-screen mode and then shifts to full-screen mode later.
So the last thing is to adjust the application's splash-screen in
Package.appxmanifest. I created a large 2480x1200 monochrome image using the photo editor GIMP, and then used this as my splash-screen image inPackage.appxmanifest. I then ensure that only the "Scale400" (the 2480x1200 scaled version) of this PNG is the only "SplashScreen..." image present in myAssets\directory.And with all of these changes, the application (splash-screen included) is full-screen from the moment it is launched.