Helper classes for showing Callisto dialogs with Caliburn.Micro
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Helpers for displaying Callisto dialogs with Caliburn.Micro

Callisto is an excellent, open source UI Control library for the Windows 8 Store apps. Caliburn.Micro is a powerful framework for building Windows Phone, Silverlight and Windows 8 Store apps. These helpers make it easies to combine Caliburn.Micro with the Callisto's dialogs.


  • Helper for displaying settings dialogs on the Settings charm
  • Helper for displaying normal dialogs all around the screen


The helpers are available as a source code through NuGet:

Install-Package CaliburnMicroWinRTCallistoHelpers

Installing the package will add a Dialogs-folder into your projects. This folder contains the source code for the helpers.


Your project must reference Callisto and the Caliburn.Micro must be set right. The helpers have been tested with Callisto 1.2.1.


A sample app showing the usage of the helpers is available from this repository.


  1. Create normal Caliburn.Micro view model (inheriting from Screen / Conductor) and the view for the view model
  2. Pass the type of the view model to the helper. The helper will create the view model and the view and it will display the dialog.

Normal dialog

Use DialogService.ShowDialog<TViewModel>() to display a dialog.


  • PlacementMode (Required): The way the Callisto dialog works is that you provide it an UI control as a placement target. The dialog will open next to this UI control. PlacementMode defines if the dialog should be shown above, under, left or right of this UI control.
  • PlacementTarget (Required): The placement target.
  • onInitialize: Action which is executed before the dialog is shown.
  • onClose: Action which is executed after the dialog has been closed.


Page's XAML:

<Button x:Name="ShowDialog" Content="Show Dialog" HorizontalAlignment="Center"/>`

Page's View Model:

public void ShowDialog(FrameworkElement source)
    DialogService.ShowDialog<DialogViewModel>(PlacementMode.Left, source);

Dialog's View Model:

    public class DialogViewModel : Screen
        public async void ShowMessage()
            var dlg = new MessageDialog("Hello from Dialog");

            await dlg.ShowAsync();

Dialog's View:


    <Grid >
        <TextBlock Text="Callisto Dialog" Foreground="Black" Style="{StaticResource SubheaderTextStyle}"/>
        <Button x:Name="ShowMessage" Content="Show Message" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center"/>

Settings dialog

On the MainPage of your application, use the AddSetting-extension method to use the helper:

    private static bool initialized;
    public MainPage()

        if (initialized) return;

        SettingsPane.GetForCurrentView().CommandsRequested += CommandsRequested;
        initialized = true;

    private void CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)


  • onInitialize: Action which is executed before the settings dialog is shown.
  • onClosed: Action which is execute after the dialog has been closed.
  • headerBrush: Can be used to control the color of the settings header
  • backgroundBrush: Can be used to control the background color of the settings pange
  • Dialog's title is automatically determined from the ViewModel's DisplayName-property.


View Model:

public sealed class SettingsViewModel : Screen
    public SettingsViewModel()
        this.DisplayName = "My Settings";

    public bool TestSetting { get; set; }

View :


        <CheckBox Content="Test setting" x:Name="TestSetting" Margin="0 20 0 0" />