Category Archives: Tips & Tricks

Displaying image inside Panorama Title in Windows Phone applications

Although it might seem too obvious, but still many developers and designers forget that top-margin should be equal to 80 for the content inside Panorama Title(in my example bellow Margin=”0,80,0,0″ for Grid element). Bellow is the XAML markup that you … Continue reading

Posted in Development, Layout, Tips & Tricks, Windows Phone 7 | Tagged , , , | 3 Comments

Injecting ViewModels to Views using a custom ViewModelLocator in Windows Phone

In one of my previous posts (IoC for Windows Phone: Ninject I have shown a simple IoC and DI tutorial using Ninject. In this tutorial will be based on previously developed code and extended that with a custom ViewModelLocator to … Continue reading

Posted in Development, DI, IoC, MVVM, Silverlight, Tips & Tricks, Windows Phone 7 | Tagged , , , , , , | 5 Comments

Making a POST call to a HTTPS url using HttpWebRequest

Here is a sample method I’ve used for making a POST(HTTP Method) call to a HTTPS url using an instance of HttpWebRequest class: Keep in mind that if your call does not have any content(request body) you still can not … Continue reading

Posted in Development, Tips & Tricks, Tutorials, Web | Tagged , , , , | Leave a comment

Creating reusable animations programmatically in Silverlight and Windows Phone

As many of you know, I answer a lot of emails regarding Windows Phone development and last week I was asked to show how to create reusable Storyboards with animations programmatically in Silverlight (Windows Phone). Of course, there are plenty … Continue reading

Posted in Development, Silverlight, Tips & Tricks, Tutorials, Windows Phone 7 | Tagged , , , , | Leave a comment

Three properties that I use for almost every Windows Phone application

In this post I will tell you which three properties I use for almost every of my Windows Phone applications. First property is used by me to determine if the application is running in trial mode or full mode. Second … Continue reading

Posted in Development, Themes, Tips & Tricks, Tutorials, Windows Phone 7 | 2 Comments

Detecting theme background in Windows Phone 7 applications

As you have probably noticed Windows Phone 7 platform allows you to change the Background (Theme) in emulator and on real device. It can be accomplished in Settings -> Theme menu (check image bellow). As a developer I sometimes need … Continue reading

Posted in Development, Themes, Tips & Tricks, Windows Phone 7 | Tagged , , , | 3 Comments

Binding Image, Brush or Color to Background property in Silverlight and Windows Phone 7

I’ve decided to post a property I use to bind Image / Brush / Color hex to Background property of Silverlight or Windows Phone 7 control. First of all, do not use that property in every Background Binding case to … Continue reading

Posted in Binding, Development, Tips & Tricks, Windows Phone 7 | Tagged , , , , , , , , | 2 Comments

Detecting and simulating low memory devices in Windows Phone 7 applications

Probably most of you have read Performance and Resource Management part of Windows Phone 7 Application Certification Requirements v1.4 document concerning requirements to memory consumption. In particular, there is a sentence regarding low memory devices (which have only 256 MB … Continue reading

Posted in Development, Optimization, Tips & Tricks, Tutorials, Windows Phone 7 | Tagged , , , , , | 6 Comments

Windows Phone 7 Navigation Issue “InvalidOperationException” or “No Fragment support”

Several days ago I have received an interesting question for my Windows Phone 7 Application Bar article, where one of my readers has described an exception (InvalidOperationException, “No Fragment support right now”) occurred after the illegal navigation attempt(using Application Bar … Continue reading

Posted in Development, Navigation, Tips & Tricks, Windows Phone 7 | Tagged , , , | 1 Comment

Creating a Horizontal ListBox in Silverlight and Windows Phone

Creating horizontal ListBox element is obviously a pretty easy thing to do, but anyway I have decided to post XAML for that. Tweet

Posted in Development, Silverlight, Tips & Tricks, Windows Phone 7 | Tagged , , | 3 Comments