バージョン

CalendarItemGroup クラス

XamMonthCalendar にあるカレンダー項目のグループを表します。たとえば、年の指定された月です。
シンタックス
'宣言
 
Public Class CalendarItemGroup 
   Inherits System.Windows.Controls.Control
public class CalendarItemGroup : System.Windows.Controls.Control 
解説

CalendarItemGroup は CalendarItem インスタンスのグループを表すために使用されます。に基づいて、グループは日、月、年、十年、または百年を表す項目を含みます。

使用例
<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="&lt;" />
                        
<Button Command="{x:Static igEditors:MonthCalendarCommands.ScrollNextGroup}" 
                                
CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                
Content="&gt;" />
                        
<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>
参照