1 instantiation of CalendarDayButton
PresentationFramework (1)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
971
CalendarDayButton dayCell = new
CalendarDayButton
();
51 references to CalendarDayButton
PresentationFramework (51)
src\Framework\System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (1)
37
return (Owner is
CalendarDayButton
);
src\Framework\System\Windows\Controls\Calendar.cs (3)
856
internal
CalendarDayButton
FindDayButtonFromDay(DateTime day)
860
foreach (
CalendarDayButton
b in this.MonthControl.GetCalendarDayButtons())
1258
CalendarDayButton
currentDayButton = (MonthControl != null) ? MonthControl.GetCalendarDayButton(this.CurrentDate) : null;
src\Framework\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
),
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (40)
348
internal IEnumerable<
CalendarDayButton
> GetCalendarDayButtons()
357
CalendarDayButton
b = dayButtonsHost[childIndex] as
CalendarDayButton
;
366
internal
CalendarDayButton
GetFocusedCalendarDayButton()
368
foreach (
CalendarDayButton
b in GetCalendarDayButtons())
379
internal
CalendarDayButton
GetCalendarDayButton(DateTime date)
381
foreach (
CalendarDayButton
b in GetCalendarDayButtons())
568
CalendarDayButton
b = sender as
CalendarDayButton
;
658
CalendarDayButton
b = sender as
CalendarDayButton
;
758
CalendarDayButton
b = sender as
CalendarDayButton
;
808
CalendarDayButton
b = sender as
CalendarDayButton
;
867
CalendarDayButton
b = GetCalendarDayButton(selectedDate);
971
CalendarDayButton
dayCell = new CalendarDayButton();
976
dayCell.SetBinding(
CalendarDayButton
.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle"));
978
dayCell.AddHandler(
CalendarDayButton
.MouseLeftButtonDownEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonDown), true);
979
dayCell.AddHandler(
CalendarDayButton
.MouseLeftButtonUpEvent, new MouseButtonEventHandler(Cell_MouseLeftButtonUp), true);
980
dayCell.AddHandler(
CalendarDayButton
.MouseEnterEvent, new MouseEventHandler(Cell_MouseEnter), true);
1058
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1079
private void SetMonthModeDayButtonState(
CalendarDayButton
childButton, DateTime? dateToAdd)
1099
CalendarDayButton
.IsBlackedOutPropertyKey,
1104
CalendarDayButton
.IsInactivePropertyKey,
1110
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, true);
1114
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, false);
1129
childButton.SetValue(
CalendarDayButton
.IsSelectedPropertyKey, isSelected);
1136
childButton.SetValue(
CalendarDayButton
.IsBlackedOutPropertyKey, false);
1137
childButton.SetValue(
CalendarDayButton
.IsInactivePropertyKey, true);
1138
childButton.SetValue(
CalendarDayButton
.IsTodayPropertyKey, false);
1139
childButton.SetValue(
CalendarDayButton
.IsSelectedPropertyKey, false);
1171
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1176
CalendarDayButton
.IsHighlightedPropertyKey,
1181
childButton.SetValue(
CalendarDayButton
.IsHighlightedPropertyKey, false);
1191
CalendarDayButton
childButton = _monthView.Children[childIndex] as
CalendarDayButton
;
1192
childButton.SetValue(
CalendarDayButton
.IsHighlightedPropertyKey, false);