Version

ScrollButtonVisibility Property

Returns or sets the visibility of the scroll buttons with the CalendarItemGroup instances.
Syntax
'Declaration
 
Public Property ScrollButtonVisibility As Visibility
public Visibility ScrollButtonVisibility {get; set;}
Remarks

The ScrollButtonVisibility is used to indicate whethe the CalendarItemGroup instances within the control should display the previous and next scroll buttons. The default template for the XamMonthCalendar uses a CalendarItemGroupPanel that autogenerates the groups displayed within the control. When scroll buttons are to be displayed, it ensures that the scroll previous of the upper left most group and the scroll next of the upper right most group will display their scroll buttons. If you retemplate the XamMonthCalendar to directly contain CalendarItemGroups then you must selectively bind the ScrollPreviousButtonVisibility and ScrollNextButtonVisibility to this property.

Example
The following sample demonstrates some of the properties that affect the display of the XamMonthCalendar.

Imports Infragistics.Windows.Editors
Imports Infragistics.Windows.Controls

    Private Sub InitializeCalendar(ByVal calendar As XamMonthCalendar)
        ' show the week numbers - by default week numbers are not shown
        calendar.WeekNumberVisibility = Visibility.Visible

        ' hide the today button - by default it is shown
        calendar.TodayButtonVisibility = Visibility.Collapsed

        ' by default the day of week headers are displayed
        calendar.DayOfWeekHeaderVisibility = Visibility.Visible

        ' the DayOfWeekHeaderFormat provides several options for
        ' how much text is displayed for the day of week headers.
        ' this defaults to 2 characters
        calendar.DayOfWeekHeaderFormat = DayOfWeekHeaderFormat.SingleCharacter

        ' hide the scroll buttons - by default they are displayed in the
        ' upper left and upper right CalendarItemGroups
        calendar.ScrollButtonVisibility = Visibility.Collapsed
    End Sub
using Infragistics.Windows.Editors;
using Infragistics.Windows.Controls;

        private void InitializeCalendar(XamMonthCalendar calendar)
        {
            // show the week numbers - by default week numbers are not shown
            calendar.WeekNumberVisibility = Visibility.Visible;

            // hide the today button - by default it is shown
            calendar.TodayButtonVisibility = Visibility.Collapsed;

            // by default the day of week headers are displayed
            calendar.DayOfWeekHeaderVisibility = Visibility.Visible;

            // the DayOfWeekHeaderFormat provides several options for
            // how much text is displayed for the day of week headers.
            // this defaults to 2 characters
            calendar.DayOfWeekHeaderFormat = DayOfWeekHeaderFormat.SingleCharacter;

            // hide the scroll buttons - by default they are displayed in the
            // upper left and upper right CalendarItemGroups
            calendar.ScrollButtonVisibility = Visibility.Collapsed;
        }
<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">
    
<igEditors:XamMonthCalendar
        
x:Name="xamMonthCalendar1"
        
WeekNumberVisibility="Visible"
        
TodayButtonVisibility="Collapsed"
        
DayOfWeekHeaderVisibility="Visible"
        
DayOfWeekHeaderFormat="SingleCharacter"
        
ScrollButtonVisibility="Collapsed"
        
/>
</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