Disable screen capture
If you are develop any security apps, sometimes we will need to disable to take screenshots of your app. This feature was available in Windows 10 app. You need to call the ViewManagement class ad get the properties of current view screen.
Next set the screen capture boo value properties to false like the following code.
- Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
View full screen mode
Next we are going to see how to show your app screen as full screen mode because you will see by default windows 10 app open as initial size. If you need to open the app as full screen or required size then we can achieve this by using the following code,
Add the namespace using Windows.UI.ViewManagement;
Next create a news instance to get the application current view properties. Then set the full screen mode as like the following code.
- var currentSize = ApplicationView.GetForCurrentView();
- if (!currentSize.IsFullScreen)
- {
- currentSize.TryEnterFullScreenMode();
- }
- else
- {}
- //to set the screen size
- currentSize.TryResizeView(new Size(720, 540));
- //to exit the full screen size view
- currentSize.ExitFullScreenMode();

Join the conversation! Your thoughts help the community grow.