<UserControl x:Class="Xaml.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:igEditors="http://infragistics.com/Editors"
xmlns:igThemes="http://infragistics.com/Themes">
<UserControl.Resources>
<ControlTemplate x:Key="PreviewNextPreviousMonths" TargetType="{x:Type igEditors:XamMonthCalendar}">
<Border>
<DockPanel>
<ToolBar DockPanel.Dock="Bottom">
<Button Command="{x:Static igEditors:MonthCalendarCommands.ScrollPreviousGroup}"
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
Content="<" />
<Button Command="{x:Static igEditors:MonthCalendarCommands.ScrollNextGroup}"
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
Content=">" />
<Button DockPanel.Dock="Bottom"
Style="{DynamicResource {x:Static igEditors:XamMonthCalendar.TodayButtonStyleKey}}"
Visibility="{TemplateBinding TodayButtonVisibility}" />
</ToolBar>
<Grid DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition MaxWidth="200" />
<ColumnDefinition />
<ColumnDefinition MaxWidth="200" />
</Grid.ColumnDefinitions>
<Viewbox StretchDirection="DownOnly">
<igEditors:CalendarItemGroup
ReferenceGroupOffset="-1"
ScrollNextButtonVisibility="Hidden"
ScrollPreviousButtonVisibility="Hidden"
ShowLeadingDates="{TemplateBinding ShowLeadingAndTrailingDates}"
ShowTrailingDates="False"
/>
</Viewbox>
<Viewbox StretchDirection="DownOnly" Grid.Column="2">
<igEditors:CalendarItemGroup
ReferenceGroupOffset="1"
ScrollNextButtonVisibility="Hidden"
ScrollPreviousButtonVisibility="Hidden"
ShowTrailingDates="{TemplateBinding ShowLeadingAndTrailingDates}"
ShowLeadingDates="False"
/>
</Viewbox>
</Grid>
<igEditors:CalendarItemGroup
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ReferenceGroupOffset="0"
ShowLeadingDates="False"
ShowTrailingDates="False"
/>
</DockPanel>
</Border>
</ControlTemplate>
</UserControl.Resources>
<igEditors:XamMonthCalendar
x:Name="xamMonthCalendar1"
Template="{StaticResource PreviewNextPreviousMonths}" />
</UserControl>