In this tutorial I will show you how to wrap variable sized ListView Items in Windows Phone 8.1. This is how our end product looks. . Here are the steps: Step 1: Create a custom WrapGrid Firstly we would be creating a custom WrapGrid by overriding MeasureOverride and ArrangeOverride methods of Panel. So we have […]
In this tutorial I will show you how to implement a tab view using Pivot Items in Windows Phone 8.1 WinRT app or Windows 10 app using just a few lines of codes. If you are developing for Windows Phone 8 or Windows Phone 8.1 Silverlight then follow this article: http://windowsapptutorials.com/windows-phone/ui/how-to-implement-tab-view-in-windows-phone-8/ We will use a […]
There is no built in function to get the query parameters of a URL as a name, value dictionary which can be accessed easily. So you could use this extension function to get the query parameters. Now this extension function can be used just like another primitive function.
To detect when Battery Saver is enabled you must check the PowerManager.PowerSavingModeEnabled property. Because this property is only available for devices running Windows Phone 8 Update 3, you must access this property via reflection after checking the device OS version. The following example shows you how to detect if Battery Saver is currently enabled.
Sometimes you need to restrict the input to two decimal places in C#. The following function returns true if the input is valid, otherwise it returns false. You will need to listen to a Key_Down event handler for your TextBox and put the following code in it. Setting e.handled to true prevents the current character […]
This method is ugly but it works. The key part is IsTabStop property. If I don’t touch it – the keyboard disappers for a fraction of a second and reapears again. Makes virtual keyboard disappear when user taps enter key. You just need to call the LostFocus method and pass the name of the TextBox […]