wp7–JSON parsing

Peter Daukintis I’m writing this mainly as a central place to store this code as I need to use it frequently – hopefully it will help others also. Supposing I have a web service that I want to call that…

Read More

skydrive photo upload wp7

Peter Daukintis I just modified my file upload sample (http://babaandthepigman.wordpress.com/2012/01/18/wp7-skydrive-upload/) to use the PhotoChooserTask to enable photo upload.     Here are the files: https://skydrive.live.com/redir.aspx?cid=4f1b7368284539e5&resid=4F1B7368284539E5!439&parid=4F1B7368284539E5!123

wp7 Collectionviewsource filtering

Having read a recent question on the App Hub Forums I decided to update my previous post on CollectionViewSource http://babaandthepigman.wordpress.com/2011/07/03/wp7-collectionviewsource-sorting-a-listbox/ to enable filtering. So, I added a text box to enter the filter string,     And the following code…

Read More

wp7 skydrive upload

Technorati Tags: wp7dev Download the sdk, which at the time of writing is here http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=28195 Next, head over to https://manage.dev.live.com/Applications/Index and add an application. This will provide you with an application Id and a client secret token. You also need…

Read More

wp7 – custom control project template

I couldn’t locate a Visual Studio project template for creating a windows phone 7 custom control library. So….I decided to make one. It is pretty straight-forward to create one by hand but the second time the process becomes a bit…

Read More

wp7 CollectionViewSource – sorting a listbox

A nice and flexible way to introduce filtering and sorting on a view model data collection is to use a CollectionViewSource. Here’s a quick example:     Starting with a bound collection property like this…           public ObservableCollection<Item> Items…

Read More

wp7 pathlistbox

Since the new Mango developer tools were just released I wanted to write a quick post on PathListBox since I have been looking for an excuse to give it a try. PathListBox allows layout of list box items along an…

Read More

WP7 UserControls

by Peter Daukintis Since silverlight 2 we have had the concept of the UserControl which provides a simple way to compose a re-usable part of our user interface. This allows multiple uses of the same ui across an application which…

Read More

Simple textbox validation wp7

Since wp7 is based on Silverlight 3 then input validation can be done (love or loathe it) via exceptions. Here’s a simple example… <Grid x:Name="ContentPanel" Grid.Row="1"> <Border x:Name="errorBorder" Background="Red" Opacity="0"></Border> <TextBox Margin="8" Text="{Binding MyText, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" BindingValidationError="ContentPanel_BindingValidationError"> <TextBox.InputScope> <InputScope>…

Read More