1 instantiation of Calendar
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
1078
_calendar = new
Calendar
();
81 references to Calendar
PresentationFramework (81)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (4)
28
public CalendarAutomationPeer(System.Windows.Controls.
Calendar
owner)
35
private System.Windows.Controls.
Calendar
OwningCalendar
39
return this.Owner as System.Windows.Controls.
Calendar
;
183
System.Windows.Controls.
Calendar
owner = OwningCalendar;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
30
internal DateTimeAutomationPeer(DateTime date,
Calendar
owningCalendar, CalendarMode buttonMode)
59
private
Calendar
OwningCalendar
System\Windows\Controls\Calendar.cs (49)
20
[TemplatePart(Name =
Calendar
.ElementRoot, Type = typeof(Panel))]
21
[TemplatePart(Name =
Calendar
.ElementMonth, Type = typeof(CalendarItem))]
50
public static readonly RoutedEvent SelectedDatesChangedEvent = EventManager.RegisterRoutedEvent("SelectedDatesChanged", RoutingStrategy.Direct, typeof(EventHandler<SelectionChangedEventArgs>), typeof(
Calendar
));
83
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(typeof(
Calendar
)));
84
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
85
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
86
LanguageProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnLanguageChanged)));
88
EventManager.RegisterClassHandler(typeof(
Calendar
), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
135
typeof(
Calendar
));
157
typeof(
Calendar
));
179
typeof(
Calendar
));
202
typeof(
Calendar
),
212
Calendar
c = d as
Calendar
;
222
Calendar
c = d as
Calendar
;
258
typeof(
Calendar
),
268
Calendar
c = d as
Calendar
;
277
Calendar
c = d as
Calendar
;
319
typeof(
Calendar
),
329
Calendar
c = d as
Calendar
;
339
Calendar
c = d as
Calendar
;
375
typeof(
Calendar
),
386
Calendar
c = d as
Calendar
;
445
typeof(
Calendar
),
457
Calendar
c = d as
Calendar
;
481
typeof(
Calendar
),
491
Calendar
c = d as
Calendar
;
506
Calendar
c = d as
Calendar
;
507
if (DependencyPropertyHelper.GetValueSource(d,
Calendar
.FirstDayOfWeekProperty).BaseValueSource == BaseValueSource.Default)
534
typeof(
Calendar
),
544
Calendar
c = d as
Calendar
;
624
typeof(
Calendar
),
630
Calendar
c = d as
Calendar
;
874
internal static bool IsValidDateSelection(
Calendar
cal, object value)
1162
private static bool IsValidKeyboardSelection(
Calendar
cal, object value)
1232
var
c = (
Calendar
)sender;
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (2)
22
private
Calendar
_owner;
30
public CalendarBlackoutDatesCollection(
Calendar
owner)
System\Windows\Controls\DatePicker.cs (11)
43
private
Calendar
_calendar;
293
Calendar
.IsValidFirstDayOfWeek);
632
internal
Calendar
Calendar
951
Calendar
c = sender as
Calendar
;
1087
_calendar.SetBinding(
Calendar
.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty));
1088
_calendar.SetBinding(
Calendar
.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
1089
_calendar.SetBinding(
Calendar
.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty));
1090
_calendar.SetBinding(
Calendar
.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty));
1091
_calendar.SetBinding(
Calendar
.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
1126
if (
Calendar
.IsValidDateSelection(this._calendar, newSelectedDate))
System\Windows\Controls\Primitives\CalendarButton.cs (1)
91
internal
Calendar
Owner
System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
164
internal
Calendar
Owner
System\Windows\Controls\Primitives\CalendarItem.cs (4)
86
internal
Calendar
Owner
924
this.Owner.SetCurrentValueInternal(
Calendar
.DisplayModeProperty, CalendarMode.Year);
930
this.Owner.SetCurrentValueInternal(
Calendar
.DisplayModeProperty, CalendarMode.Decade);
1143
var
owner = this.Owner;
System\Windows\Controls\SelectedDatesCollection.cs (7)
26
private
Calendar
_owner;
36
public SelectedDatesCollection(
Calendar
owner)
165
if (
Calendar
.IsValidDateSelection(this._owner, item))
281
if (DateTime.Compare(this[index], item) != 0 &&
Calendar
.IsValidDateSelection(this._owner, item))
328
if (
Calendar
.IsValidDateSelection(this._owner, current))
384
if (
Calendar
.IsValidDateSelection(this._owner, date))
427
this._owner.OnSelectedDatesCollectionChanged(new CalendarSelectionChangedEventArgs(
Calendar
.SelectedDatesChangedEvent, removedItems, addedItems));