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