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


In This Topic
    PropertyCondition Class
    In This Topic
    Represents the PropertyCondition class which use to judge condition through property of button data.
    Object Model
    PropertyCondition Class
    Syntax
    'Declaration
     
    <ContentPropertyAttribute("Setters")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class PropertyCondition 
       Inherits SelectorCondition
    'Usage
     
    Dim instance As PropertyCondition
    [ContentProperty("Setters")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class PropertyCondition : SelectorCondition 
    Remarks
    In WeekTitleStyleSelector, the Property should be one of the properties of WeekTitleInfo. In CalendarDayButtonStyleSelector, the Property should be one of the properties of DayInfo.
    Example
    The following xaml demonstrates how to change appearance of WeekTitle and CalendarDayButton through WeekTitleStyleSelector and CalendarDayButtonStyleSelector in xaml.
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectorCondition
                GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition

    See Also