Share via


CalendarView.DayItemMargin Property

Definition

Gets or sets the amount of space around the outside of a day item.

public:
 property Thickness DayItemMargin { Thickness get(); void set(Thickness value); };
Thickness DayItemMargin();

void DayItemMargin(Thickness value);
public Thickness DayItemMargin { get; set; }
var thickness = calendarView.dayItemMargin;
calendarView.dayItemMargin = thickness;
Public Property DayItemMargin As Thickness
<CalendarView DayItemMargin="uniform"/>
- or -
<CalendarView DayItemMargin="left+right,top+bottom"/>
- or -
<CalendarView DayItemMargin="left,top,right,bottom"/>
 

Property Value

The amount of space around the outside of a day item.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to