Class CalendarItem
- Namespace
- Avalonia.Controls.Primitives
- Assembly
- Avalonia.Controls.dll
Represents the currently displayed month or year on a Calendar.
[TemplatePart("PART_HeaderButton", typeof(Button))]
[TemplatePart("PART_MonthView", typeof(Grid))]
[TemplatePart("PART_NextButton", typeof(Button))]
[TemplatePart("PART_PreviousButton", typeof(Button))]
[TemplatePart("PART_YearView", typeof(Grid))]
[PseudoClasses(new string[] { ":calendardisabled" })]
public sealed class CalendarItem : TemplatedControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
- Inheritance
-
CalendarItem
- Implements
- Inherited Members
- Extension Methods
Constructors
CalendarItem()
public CalendarItem()
Fields
DayTitleTemplateProperty
public static readonly StyledProperty<ITemplate<Control>?> DayTitleTemplateProperty
Field Value
HeaderBackgroundProperty
public static readonly StyledProperty<IBrush?> HeaderBackgroundProperty
Field Value
Properties
DayTitleTemplate
public ITemplate<Control>? DayTitleTemplate { get; set; }
Property Value
HeaderBackground
public IBrush? HeaderBackground { get; set; }
Property Value
Methods
OnApplyTemplate(TemplateAppliedEventArgs)
Builds the visual tree for the System.Windows.Controls.Primitives.CalendarItem when a new template is applied.
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)