1 instantiation of Calendar
PresentationFramework (1)
System\Windows\Controls\DatePicker.cs (1)
1074
_calendar = new
Calendar
();
81 references to Calendar
PresentationFramework (81)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (4)
22
public CalendarAutomationPeer(System.Windows.Controls.
Calendar
owner)
29
private System.Windows.Controls.
Calendar
OwningCalendar
33
return this.Owner as System.Windows.Controls.
Calendar
;
177
System.Windows.Controls.
Calendar
owner = OwningCalendar;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
23
internal DateTimeAutomationPeer(DateTime date,
Calendar
owningCalendar, CalendarMode buttonMode)
52
private
Calendar
OwningCalendar
System\Windows\Controls\Calendar.cs (49)
16
[TemplatePart(Name =
Calendar
.ElementRoot, Type = typeof(Panel))]
17
[TemplatePart(Name =
Calendar
.ElementMonth, Type = typeof(CalendarItem))]
46
public static readonly RoutedEvent SelectedDatesChangedEvent = EventManager.RegisterRoutedEvent("SelectedDatesChanged", RoutingStrategy.Direct, typeof(EventHandler<SelectionChangedEventArgs>), typeof(
Calendar
));
79
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(typeof(
Calendar
)));
80
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
81
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
82
LanguageProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnLanguageChanged)));
84
EventManager.RegisterClassHandler(typeof(
Calendar
), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
131
typeof(
Calendar
));
153
typeof(
Calendar
));
175
typeof(
Calendar
));
198
typeof(
Calendar
),
208
Calendar
c = d as
Calendar
;
218
Calendar
c = d as
Calendar
;
254
typeof(
Calendar
),
264
Calendar
c = d as
Calendar
;
273
Calendar
c = d as
Calendar
;
315
typeof(
Calendar
),
325
Calendar
c = d as
Calendar
;
335
Calendar
c = d as
Calendar
;
371
typeof(
Calendar
),
382
Calendar
c = d as
Calendar
;
441
typeof(
Calendar
),
453
Calendar
c = d as
Calendar
;
477
typeof(
Calendar
),
487
Calendar
c = d as
Calendar
;
502
Calendar
c = d as
Calendar
;
503
if (DependencyPropertyHelper.GetValueSource(d,
Calendar
.FirstDayOfWeekProperty).BaseValueSource == BaseValueSource.Default)
530
typeof(
Calendar
),
540
Calendar
c = d as
Calendar
;
620
typeof(
Calendar
),
626
Calendar
c = d as
Calendar
;
870
internal static bool IsValidDateSelection(
Calendar
cal, object value)
1158
private static bool IsValidKeyboardSelection(
Calendar
cal, object value)
1228
var
c = (
Calendar
)sender;
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (2)
20
private
Calendar
_owner;
28
public CalendarBlackoutDatesCollection(
Calendar
owner)
System\Windows\Controls\DatePicker.cs (11)
39
private
Calendar
_calendar;
289
Calendar
.IsValidFirstDayOfWeek);
628
internal
Calendar
Calendar
947
Calendar
c = sender as
Calendar
;
1083
_calendar.SetBinding(
Calendar
.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty));
1084
_calendar.SetBinding(
Calendar
.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
1085
_calendar.SetBinding(
Calendar
.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty));
1086
_calendar.SetBinding(
Calendar
.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty));
1087
_calendar.SetBinding(
Calendar
.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
1122
if (
Calendar
.IsValidDateSelection(this._calendar, newSelectedDate))
System\Windows\Controls\Primitives\CalendarButton.cs (1)
88
internal
Calendar
Owner
System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
161
internal
Calendar
Owner
System\Windows\Controls\Primitives\CalendarItem.cs (4)
81
internal
Calendar
Owner
919
this.Owner.SetCurrentValueInternal(
Calendar
.DisplayModeProperty, CalendarMode.Year);
925
this.Owner.SetCurrentValueInternal(
Calendar
.DisplayModeProperty, CalendarMode.Decade);
1138
var
owner = this.Owner;
System\Windows\Controls\SelectedDatesCollection.cs (7)
22
private
Calendar
_owner;
32
public SelectedDatesCollection(
Calendar
owner)
161
if (
Calendar
.IsValidDateSelection(this._owner, item))
277
if (DateTime.Compare(this[index], item) != 0 &&
Calendar
.IsValidDateSelection(this._owner, item))
324
if (
Calendar
.IsValidDateSelection(this._owner, current))
380
if (
Calendar
.IsValidDateSelection(this._owner, date))
423
this._owner.OnSelectedDatesCollectionChanged(new CalendarSelectionChangedEventArgs(
Calendar
.SelectedDatesChangedEvent, removedItems, addedItems));