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