1 instantiation of CalendarDayButton
PresentationFramework (1)
System\Windows\Controls\Primitives\CalendarItem.cs (1)
954
CalendarDayButton dayCell = new
CalendarDayButton
51 references to CalendarDayButton
PresentationFramework (51)
System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (1)
31
return (Owner is
CalendarDayButton
);
System\Windows\Controls\Calendar.cs (3)
850
internal
CalendarDayButton
FindDayButtonFromDay(DateTime day)
854
foreach (
CalendarDayButton
b in this.MonthControl.GetCalendarDayButtons())
1244
CalendarDayButton
currentDayButton = MonthControl?.GetCalendarDayButton(this.CurrentDate);
System\Windows\Controls\Primitives\CalendarDayButton.cs (7)
28
DefaultStyleKeyProperty.OverrideMetadata(typeof(
CalendarDayButton
), new FrameworkPropertyMetadata(typeof(
CalendarDayButton
)));
46
typeof(
CalendarDayButton
),
69
typeof(
CalendarDayButton
),
92
typeof(
CalendarDayButton
),
115
typeof(
CalendarDayButton
),
138
typeof(
CalendarDayButton
),
System\Windows\Controls\Primitives\CalendarItem.cs (40)
341
internal IEnumerable<
CalendarDayButton
> GetCalendarDayButtons()
350
CalendarDayButton
b = dayButtonsHost[childIndex] as
CalendarDayButton
;
359
internal
CalendarDayButton
GetFocusedCalendarDayButton()
361
foreach (
CalendarDayButton
b in GetCalendarDayButtons())
372
internal
CalendarDayButton
GetCalendarDayButton(DateTime date)
374
foreach (
CalendarDayButton
b in GetCalendarDayButtons())
561
CalendarDayButton
b = sender as
CalendarDayButton
;
651
CalendarDayButton
b = sender as
CalendarDayButton
;
750
CalendarDayButton
b = sender as
CalendarDayButton
;
800
CalendarDayButton
b = sender as
CalendarDayButton
;
859
CalendarDayButton
b = GetCalendarDayButton(selectedDate);
954
CalendarDayButton
dayCell = new CalendarDayButton
960
dayCell.SetBinding(
CalendarDayButton
.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle"));
962
dayCell.AddHandler(
CalendarDayButton
.MouseLeftButtonDownEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonDown), true);
963
dayCell.AddHandler(
CalendarDayButton
.MouseLeftButtonUpEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonUp), true);
964
dayCell.AddHandler(
CalendarDayButton
.MouseEnterEvent, new MouseEventHandler(Cell_MouseEnter), true);
1042
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1063
private void SetMonthModeDayButtonState(
CalendarDayButton
childButton, DateTime? dateToAdd)
1083
CalendarDayButton
.IsBlackedOutPropertyKey,
1088
CalendarDayButton
.IsInactivePropertyKey,
1094
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, true);
1098
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, false);
1113
childButton.SetValue(
CalendarDayButton
.IsSelectedPropertyKey, isSelected);
1120
childButton.SetValue(
CalendarDayButton
.IsBlackedOutPropertyKey, false);
1121
childButton.SetValue(
CalendarDayButton
.IsInactivePropertyKey, true);
1122
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, false);
1123
childButton.SetValue(
CalendarDayButton
.IsSelectedPropertyKey, false);
1155
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1159
CalendarDayButton
.IsHighlightedPropertyKey,
1164
childButton.SetValue(
CalendarDayButton
.IsHighlightedPropertyKey, false);
1174
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1175
childButton.SetValue(
CalendarDayButton
.IsHighlightedPropertyKey, false);