Table of Contents
Multi-Month View

EO.Wpf Calendar supports multi-month view. To enable multi-month view, simply set MonthRows or MonthColumns to a value greater than 1. The following sample has both MonthRows and MonthColumns set to 2:

XAML
<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="MainWindow" Height="450" Width="450">
    <StackPanel Margin="10">
        <eo:Calendar HorizontalAlignment="Left" MonthRows="2" MonthColumns="2">  
        </eo:Calendar>
    </StackPanel>
</Window>

The above code produces the following result:

When multi-month view is enabled, property IsInMultiMonthView returns true.

When a Calendar is in multi-month view, it contains multiple CalendarMonth elements. You can use MonthStyle to customize the style of the CalendarMonth elements. The following sample displays a gray border for each CalendarMonth:

XAML
<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="MainWindow" Height="450" Width="450">
    <StackPanel Margin="10">
        <eo:Calendar HorizontalAlignment="Left" MonthRows="2" MonthColumns="2">  
            <eo:Calendar.MonthStyle>
                <Style TargetType="eo:CalendarMonth">
                    <Setter Property="BorderBrush" Value="Gray"></Setter>
                    <Setter Property="BorderThickness" Value="1"></Setter>
                </Style>
            </eo:Calendar.MonthStyle>
        </eo:Calendar>
    </StackPanel>
</Window>

The above code produces the following result: