Tag Archives: Windows Phone
Load an external image in a universal app
When I was playing with a Universal App, an app with code shared between Windows Phone 8.1 and Windows 8.1, I noticed that loading an image from an externel source isn’t as easy as it should be. What seems logical is: View: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Image VerticalAlignment="Center" Stretch="UniformToFill" Source="{Binding TheImage}"/> </Grid> ViewModel: private BitmapImage […]


Get brush from hex color in WPF, Silverlight, Windows Phone
For an app I created I needed to create a solidcolorbrush from hex RGB string. Seems a simple task, but there is no simple way of doing this. But I’ve created simple method that does just this: public static SolidColorBrush GetBrushFromHexString(string aarrggbb) { string xamlString = "<Canvas xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" Background=\"" + aarrggbb + "\"/>"; Canvas c […]

WP8 popup menu in the application bar
The Windows Phone mail application has a nice method to bypass the limitation of 4 items in the app bar. When you press the “response” button a pop-up appears, which let you choose “Reply”, “Reply all” or “Forward”. When I needed something in an app, I found that this was not built in the framework. This blog post […]

WP8 client WCF service time difference
One of my projects is a Windows Phone application that enable homecare workers to get information about the patient they have to visit, report any problems with those clients and register the time they spend at those client. One day I got “the panic call” from my contractor. At one of the organisations using this […]

Login