[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector

CalendarDayButtonStyleSelector Class

Represents the CalendarDayButtonStyleSelector class, which allow user to set simple style for CalendarDayButton according to some conditions.

Inheritance
CalendarDayButtonStyleSelector
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class CalendarDayButtonStyleSelector : StyleSelector<CalendarDayButton>
Public Class CalendarDayButtonStyleSelector
    Inherits StyleSelector(Of CalendarDayButton)
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.

Examples

The following xaml demonstrates how to change appearance of WeekTitle and CalendarDayButton through WeekTitleStyleSelector and CalendarDayButtonStyleSelector in xaml.

Constructors

Name Description
CalendarDayButtonStyleSelector()

Initializes a new instance of the CalendarDayButtonStyleSelector class.

Properties

Name Description
Conditions

Gets a collection of SelectorCondition objects. A new Style is selected when all the conditions are checked, and the setters of the conditions which are met, will be applied to the selected Style.

Methods

Name Description
SelectStyle(CalendarDayButton)

Selects the style according the Conditions.