Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDropDownCalendar Class / CalendarDayButtonStyleSelector Property
Example


In This Topic
    CalendarDayButtonStyleSelector Property
    In This Topic
    Gets or sets the CalendarDayButtonStyleSelector, use it to change appearance of CalendarDayButton according to condition. This is a dependency property.
    Syntax
    'Declaration
     
    <TypeConverterAttribute(System.ComponentModel.TypeConverter)>
    Public Property CalendarDayButtonStyleSelector As CalendarDayButtonStyleSelector
    'Usage
     
    Dim instance As GcDropDownCalendar
    Dim value As CalendarDayButtonStyleSelector
     
    instance.CalendarDayButtonStyleSelector = value
     
    value = instance.CalendarDayButtonStyleSelector
    [TypeConverter(System.ComponentModel.TypeConverter)]
    public CalendarDayButtonStyleSelector CalendarDayButtonStyleSelector {get; set;}
    Remarks
    CalendarDayButtonStyleSelector is a simple implementation from bass class, to provide simple way to change appearance(some properties) of CalendarDayButton according to some pre-defined conditions. If this interface can't satisfy user's complex requirement, user is able to use template customization to instead.
    Example
    The following xaml demonstrates how to change appearance of WeekTitle and CalendarDayButton through WeekTitleStyleSelector and CalendarDayButtonStyleSelector in xaml.
    See Also