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


In This Topic
    CalendarDayButtonStyleSelector Class
    In This Topic
    Represents the CalendarDayButtonStyleSelector class, which allow user to set simple style for CalendarDayButton according to some conditions.
    Object Model
    CalendarDayButtonStyleSelector Class
    Syntax
    'Declaration
     
    <ContentPropertyAttribute("Conditions")>
    Public Class CalendarDayButtonStyleSelector 
       Inherits GrapeCity.Wpf.SpreadSheet.CellType.Editors.StyleSelector(Of CalendarDayButton)
    'Usage
     
    Dim instance As CalendarDayButtonStyleSelector
    [ContentProperty("Conditions")]
    public class CalendarDayButtonStyleSelector : GrapeCity.Wpf.SpreadSheet.CellType.Editors.StyleSelector<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.
    Example
    The following xaml demonstrates how to change appearance of WeekTitle and CalendarDayButton through WeekTitleStyleSelector and CalendarDayButtonStyleSelector in xaml.
    Inheritance Hierarchy

    System.Object
       GrapeCity.Wpf.SpreadSheet.CellType.Editors.StyleSelector<T>
          GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector

    See Also