1 instantiation of CalendarDayButton
PresentationFramework (1)
System\Windows\Controls\Primitives\CalendarItem.cs (1)
969
CalendarDayButton dayCell = new
CalendarDayButton
();
51 references to CalendarDayButton
PresentationFramework (51)
System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (1)
36
return (Owner is
CalendarDayButton
);
System\Windows\Controls\Calendar.cs (3)
855
internal
CalendarDayButton
FindDayButtonFromDay(DateTime day)
859
foreach (
CalendarDayButton
b in this.MonthControl.GetCalendarDayButtons())
1257
CalendarDayButton
currentDayButton = (MonthControl != null) ? MonthControl.GetCalendarDayButton(this.CurrentDate) : null;
System\Windows\Controls\Primitives\CalendarDayButton.cs (7)
32
DefaultStyleKeyProperty.OverrideMetadata(typeof(
CalendarDayButton
), new FrameworkPropertyMetadata(typeof(
CalendarDayButton
)));
50
typeof(
CalendarDayButton
),
73
typeof(
CalendarDayButton
),
96
typeof(
CalendarDayButton
),
119
typeof(
CalendarDayButton
),
142
typeof(
CalendarDayButton
),
System\Windows\Controls\Primitives\CalendarItem.cs (40)
347
internal IEnumerable<
CalendarDayButton
> GetCalendarDayButtons()
356
CalendarDayButton
b = dayButtonsHost[childIndex] as
CalendarDayButton
;
365
internal
CalendarDayButton
GetFocusedCalendarDayButton()
367
foreach (
CalendarDayButton
b in GetCalendarDayButtons())
378
internal
CalendarDayButton
GetCalendarDayButton(DateTime date)
380
foreach (
CalendarDayButton
b in GetCalendarDayButtons())
567
CalendarDayButton
b = sender as
CalendarDayButton
;
657
CalendarDayButton
b = sender as
CalendarDayButton
;
756
CalendarDayButton
b = sender as
CalendarDayButton
;
806
CalendarDayButton
b = sender as
CalendarDayButton
;
865
CalendarDayButton
b = GetCalendarDayButton(selectedDate);
969
CalendarDayButton
dayCell = new CalendarDayButton();
974
dayCell.SetBinding(
CalendarDayButton
.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle"));
976
dayCell.AddHandler(
CalendarDayButton
.MouseLeftButtonDownEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonDown), true);
977
dayCell.AddHandler(
CalendarDayButton
.MouseLeftButtonUpEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonUp), true);
978
dayCell.AddHandler(
CalendarDayButton
.MouseEnterEvent, new MouseEventHandler(Cell_MouseEnter), true);
1055
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1076
private void SetMonthModeDayButtonState(
CalendarDayButton
childButton, DateTime? dateToAdd)
1096
CalendarDayButton
.IsBlackedOutPropertyKey,
1101
CalendarDayButton
.IsInactivePropertyKey,
1107
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, true);
1111
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, false);
1126
childButton.SetValue(
CalendarDayButton
.IsSelectedPropertyKey, isSelected);
1133
childButton.SetValue(
CalendarDayButton
.IsBlackedOutPropertyKey, false);
1134
childButton.SetValue(
CalendarDayButton
.IsInactivePropertyKey, true);
1135
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, false);
1136
childButton.SetValue(
CalendarDayButton
.IsSelectedPropertyKey, false);
1168
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1173
CalendarDayButton
.IsHighlightedPropertyKey,
1178
childButton.SetValue(
CalendarDayButton
.IsHighlightedPropertyKey, false);
1188
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1189
childButton.SetValue(
CalendarDayButton
.IsHighlightedPropertyKey, false);