1 instantiation of Calendar
PresentationFramework (1)
src\Framework\System\Windows\Controls\DatePicker.cs (1)
1067
_calendar = new
Calendar
();
81 references to Calendar
PresentationFramework (81)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (4)
29
public CalendarAutomationPeer(System.Windows.Controls.
Calendar
owner)
36
private System.Windows.Controls.
Calendar
OwningCalendar
40
return this.Owner as System.Windows.Controls.
Calendar
;
184
System.Windows.Controls.
Calendar
owner = OwningCalendar;
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
31
internal DateTimeAutomationPeer(DateTime date,
Calendar
owningCalendar, CalendarMode buttonMode)
67
private
Calendar
OwningCalendar
src\Framework\System\Windows\Controls\Calendar.cs (49)
21
[TemplatePart(Name =
Calendar
.ElementRoot, Type = typeof(Panel))]
22
[TemplatePart(Name =
Calendar
.ElementMonth, Type = typeof(CalendarItem))]
51
public static readonly RoutedEvent SelectedDatesChangedEvent = EventManager.RegisterRoutedEvent("SelectedDatesChanged", RoutingStrategy.Direct, typeof(EventHandler<SelectionChangedEventArgs>), typeof(
Calendar
));
84
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(typeof(
Calendar
)));
85
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
86
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
87
LanguageProperty.OverrideMetadata(typeof(
Calendar
), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnLanguageChanged)));
89
EventManager.RegisterClassHandler(typeof(
Calendar
), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
136
typeof(
Calendar
));
158
typeof(
Calendar
));
180
typeof(
Calendar
));
203
typeof(
Calendar
),
213
Calendar
c = d as
Calendar
;
223
Calendar
c = d as
Calendar
;
259
typeof(
Calendar
),
269
Calendar
c = d as
Calendar
;
278
Calendar
c = d as
Calendar
;
320
typeof(
Calendar
),
330
Calendar
c = d as
Calendar
;
340
Calendar
c = d as
Calendar
;
376
typeof(
Calendar
),
387
Calendar
c = d as
Calendar
;
446
typeof(
Calendar
),
458
Calendar
c = d as
Calendar
;
482
typeof(
Calendar
),
492
Calendar
c = d as
Calendar
;
507
Calendar
c = d as
Calendar
;
508
if (DependencyPropertyHelper.GetValueSource(d,
Calendar
.FirstDayOfWeekProperty).BaseValueSource == BaseValueSource.Default)
535
typeof(
Calendar
),
545
Calendar
c = d as
Calendar
;
625
typeof(
Calendar
),
631
Calendar
c = d as
Calendar
;
875
internal static bool IsValidDateSelection(
Calendar
cal, object value)
1163
private static bool IsValidKeyboardSelection(
Calendar
cal, object value)
1233
var
c = (
Calendar
)sender;
src\Framework\System\Windows\Controls\CalendarBlackoutDatesCollection.cs (2)
23
private
Calendar
_owner;
31
public CalendarBlackoutDatesCollection(
Calendar
owner)
src\Framework\System\Windows\Controls\DatePicker.cs (11)
44
private
Calendar
_calendar;
293
Calendar
.IsValidFirstDayOfWeek);
621
internal
Calendar
Calendar
940
Calendar
c = sender as
Calendar
;
1076
_calendar.SetBinding(
Calendar
.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty));
1077
_calendar.SetBinding(
Calendar
.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
1078
_calendar.SetBinding(
Calendar
.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty));
1079
_calendar.SetBinding(
Calendar
.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty));
1080
_calendar.SetBinding(
Calendar
.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
1115
if (
Calendar
.IsValidDateSelection(this._calendar, newSelectedDate))
src\Framework\System\Windows\Controls\Primitives\CalendarButton.cs (1)
92
internal
Calendar
Owner
src\Framework\System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
164
internal
Calendar
Owner
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (4)
87
internal
Calendar
Owner
926
this.Owner.SetCurrentValueInternal(
Calendar
.DisplayModeProperty, CalendarMode.Year);
932
this.Owner.SetCurrentValueInternal(
Calendar
.DisplayModeProperty, CalendarMode.Decade);
1146
var
owner = this.Owner;
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (7)
27
private
Calendar
_owner;
37
public SelectedDatesCollection(
Calendar
owner)
166
if (
Calendar
.IsValidDateSelection(this._owner, item))
282
if (item != null && DateTime.Compare(this[index], item) != 0 &&
Calendar
.IsValidDateSelection(this._owner, item))
329
if (
Calendar
.IsValidDateSelection(this._owner, current))
385
if (
Calendar
.IsValidDateSelection(this._owner, date))
428
this._owner.OnSelectedDatesCollectionChanged(new CalendarSelectionChangedEventArgs(
Calendar
.SelectedDatesChangedEvent, removedItems, addedItems));