Below is a sample code snippet that demonstrates how to detect if the application in Windows Phone is running in Kids Corner using C#?
The Windows.Phone.ApplicationModel.ApplicationProfile returns the value Default or Alternate. The default value indicates the normal mode whereas the Alternate indicates the Kids Corner mode.
How to detect if the Windows Phone App is running in KidsCorner using C#?
var mode = Windows.Phone.ApplicationModel.ApplicationProfile;