Tag: Prevent
Preventing the Orientation from being changed in Windows Phone App
The PhoneApplicationPage has the property Supported Orientation which is used to restrict the orientation of the page in a Windows Phone App. It accepts the values Portrait Landscape PortraitOrLandScape How to Prevent the Orientation from being changed in Windows Phone App? Setting the Supported Orientation to Portrait, Landscape will restrict the orientation from being changed when the windows phone device is rotated. If the Supported…
How to Prevent the Class from Inheriting in C# ?
You can use the keyword “sealed” in C# to prevent the user from inheriting the class. Below is a class that is marked as sealed and is not inheritable. How to Prevent the Class from Inheriting in C# ?
How to Prevent the Lock Screen to automatically lock from the Windows Phone 8 App?
There are times when the automatic lock of the Screen is enabled by the user in the Settings App of the Windows Phone 8. When your App is running on the device, sometimes you may not want to lock the device automatically for various reasons . How to Prevent the Lock Screen to automatically lock from the Windows Phone 8 App? Below is a sample…