Version

GroupHeight Property

Returns or sets the height of the CalendarItemGroups within the panel.
Syntax
'Declaration
 
Public Property GroupHeight As Double
public double GroupHeight {get; set;}
Remarks

The GroupHeight and GroupWidth are used to control the size of the CalendarItemGroup instances that the panel creates. Both of these default to double.NaN. When either is left set to NaN, the panel will use a custom hidden CalendarItemGroup to calculate the size required for the groups to replace the NaN value.

Example
The following sample demonstrates how to use the properties of the CalendarItemGroupPanel within a custom template for a XamMonthCalendar.

<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 TargetType="{x:Type igEditors:XamMonthCalendar}" x:Key="customCalendarTemplate">
            
<Border BorderBrush="{TemplateBinding Border.BorderBrush}" 
                  
BorderThickness="{TemplateBinding Border.BorderThickness}" 
                  
Background="{TemplateBinding Panel.Background}" 
                  
SnapsToDevicePixels="True" 
                  
Padding="{TemplateBinding Padding}">
                
<DockPanel SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                    
<!-- Today button -->
                    
<Button DockPanel.Dock="Bottom"
                        
Style="{DynamicResource {x:Static igEditors:XamMonthCalendar.TodayButtonStyleKey}}"  
                        
Visibility="{TemplateBinding TodayButtonVisibility}" />

                    
<!-- Groups -->
                    
<igEditors:CalendarItemGroupPanel 
                        
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" 
                        
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" 
                        
MaxGroups="6"
                        
GroupWidth="300"
                        
GroupHeight="300"
                        
/>
                
</DockPanel>
            
</Border>
        
</ControlTemplate>
    
</UserControl.Resources>
    
<igEditors:XamMonthCalendar
        
x:Name="xamMonthCalendar1"
        
Template="{StaticResource customCalendarTemplate}" />
</UserControl>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also