Skip to main content

Posts

Showing posts from September, 2013

Creating a Stepped Slider Control for Windows Phone 8

In Windows Phone 8, we can add a slider control onto a XAML page using the Slider element. <Slider Name="MySlider" HorizontalAlignment="Stretch" Maximum="12" Minimum="-12" /> As can be seen, the slider does not step to discrete values (e.g. 0.0, 0.5, 1.0 etc.), but instead allows any value within the Maximum and Minimum range to be set. For some applications, this would not be expected behaviour, for example using a Slider control to represent hours in a day where only whole hours are allowed. Fortunately, a simple Slider can easily be given stepping functionality by overriding its ValueChanged event handler. To do this, first we must add a ValueChanged handler into the XAML definition of the slider. <Slider Name="MySlider" HorizontalAlignment="Stretch" Maximum="12" Minimum="-12" ValueChanged="MySlider_ValueChanged" /> Secondly, we must add a Va...

Rise for Windows Phone 8

I'm pleased to announce that I've released Rise for Windows Phone 8 which can be downloaded for free from the Windows Phone Store . Rise allows you to find out the sun rise and sun set times for either your current location, or at a user specified latitude and longitude. This is my first Windows Phone 8 application and I've had lots of positive feedback so far, so if you've got a Windows Phone 8 device, give it a try :) If you like the app, please rate and review it on the Windows Phone Store .

Using the Windows Phone Toolkit in WP8 Applications

Visual Studio 2012 for Windows Phone is supplied with a large selection of user interface components enabling you to build Windows Phone 8 applications. There are some components, such as a toggle switch, that are however, not supplied as standard with Visual Studio. This is where the Windows Phone Toolkit comes in. The Windows Phone Toolkit is developed by the Microsoft Windows Phone developer platform team and  provides the developer community with new components, functionality, and an efficient way to help shape product development The toolkit provides the following components: AutoCompleteBox ContextMenu CustomMessageBox DateTimeConverters DateTimePickers Effects – SlideInEffect, TiltEffect and TurnstileFeatherEffect ExpanderView HubTile ListPicker LongListMultiSelector Map extensions PhoneTextBox RatingControl ToggleSwitch TransferControl Navigation transitions WrapPanel Installing the Windows Phone Toolkit Installing the Windows Phone Toolkit is a s...