Category Archives: WP7

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  

The best tools for software development

Here is a list of tools I you when developing software and for the reason I use that tool. Of course there are many other tools that do similar things and that are preferred by other people. Try all different tools you find and see which meets your needs best. IDE Since I only develop […]

MVVMlight button in DataTemplate

For a major project I’m currently working on I needed to add a button to the items in a ListPicker. This projects uses MVVMLight as MVVM framework, so I have to use the RelayCommand for the handling of the button clicks. My initial thought was to do it just like any other button: View (XAML): […]

Comments Off on MVVMlight button in DataTemplate  

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  

Use XAML resource in WPF IValueConverter

If you don’t want to hardcoded styles and colors in you WPF, Silverlight or WP7 project you’ve probably added some styles and predefined colors in the APP.XAML file: <Style TargetType="TextBlock" x:Key="Style1"> <Setter Property="Foreground" Value="Black"/> <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeLarge}"/> <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/> </Style> <Style TargetType="TextBlock" x:Key="Style2"> <Setter Property="Foreground" Value="Red"/> <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMedium}"/> <Setter Property="FontFamily" Value="{StaticResource […]

Comments Off on Use XAML resource in WPF IValueConverter