Category Archives: C#

Sharing Resources in WPF/SL

I just stumbled across the problem where I wanted to share a specific Path element between different Buttons as their Content. I declared the Path in a ResourceDictionary <Path x:Key=”MinusPath” HorizontalAlignment=”Stretch” VerticalAlignment=”Stretch” Data=”{StaticResource MinusData}” Stretch=”Fill” Stroke=”Red” StrokeThickness=”3″ /> and referenced … Continue reading

Posted in Silverlight, WPF

MVVM Dialogs with Caliburn.Micro

Background In every applications life there comes a time when you need to show some kind of message to the user. Be it a question whether he really wants to delete something or a simple message that says that some … Continue reading

Posted in C#, Caliburn.Micro, CMContrib, Silverlight, WPF

Handling Errors in Caliburn.Micro’s IResult – Part II

Preface In my last post I gave two possible approaches and a preview of my final solution for handling errors in IResults. The syntax for my final solution was This means that whenever the result completes with an error of type … Continue reading

Posted in C#, Caliburn.Micro, CMContrib

Handling Errors in Caliburn.Micro’s IResult – Part I

The Problem One of Caliburn.Micro’s nicest feature is, hands down, the concept of Actions. In that concept the IResult plays an important role, especially when using Coroutines. If you don’t know about them, you should definately read up on them … Continue reading

Posted in C#, Caliburn.Micro, CMContrib

Caliburn.Micro feat. AvalonDock II: Save/Restore Layout

One of the most convient feature for the user is to save the layout of the different widgets in your app, especially if you can arrange them as nicely as with AvalonDock. Luckily, the DockingManager already supports this feature, so … Continue reading

Posted in C#, Caliburn.Micro, WPF

Caliburn.Micro feat. AvalonDock I: Conductor and View

AvalonDock is a fancy, open source tab control for WPF which i wanted to use in one of my clients projects because it supports save/restore layout. Unfortunately, binding the avalondock control to your view model isn’t as easy as it … Continue reading

Posted in C#, Caliburn.Micro