Search code examples
c#windows-runtimewindows-store-appswindows-8.1windows-10

Remove share screenshot option - DataTransferManager


In windows 8.1 apps, while invoking the share UI using

 Windows.ApplicationModel.DataTransfer.DataTransferManager.ShowShareUI();

we get an option to share the screenshot of the current app by default. Is there a way to remove this feature?

The data I am passing from the app to be shared is a URL.

     private void DataTransferManager_DataRequested(DataTransferManager sender, DataRequestedEventArgs args)
     {
          args.Request.Data.SetWebLink(new Uri(myUrl));
     }

When the share pane appears, user is presented with an option to share the screen shot also. The scenario is explained in this link

I tried setting ApplicationView.IsScreenCaptureEnabled to false. It still listed "share screenshot". But when tried to share, shared an empty black screen. Can I do something to remove that option from share pane?


Solution

  • No, all the apps that I know of, have this option listed, so I would say this is a system built-in option, that you cannot remove in your app code.