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 […]

Comments Off on Load an external image in a universal app  

Use the WP8 appbar in ANY MVVM framework

While some frameworks, like Caliburn.Micro,have the possibility the use the appbar button with no code at all in the cod behind file, most frameworks don’t. This blogpost explains how you can use the appbar buttons in any mvvm framework the doesn’t support this feature, like MVVM Light or NRoute. The solution I found is very […]

Comments Off on Use the WP8 appbar in ANY MVVM framework  

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 […]

Comments Off on Get brush from hex color in WPF, Silverlight, Windows Phone  

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 […]

Comments Off on WP8 popup menu in the application bar  

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 […]

Comments Off on WP8 client WCF service time difference