In Windows Phone 8.1, anyone can take a screenshot by pressing the power button and the volume-up key at the same time. A customer was concerned about privacy in their enterprise app and asked me if they could disable this functionality for Windows Phone 8.1 (both WinRT and Silverlight apps).
WindowsPhone 8.1:
public MainPage()
{
this.InitializeComponent();
if (this.CanSetScreenCaptureEnabled())
{
this.SetScreenCaptureEnabled(false);
}
}
WindowsPhone store 8.1:
public MainPage()
{
this.InitializeComponent();
ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
}