124 references to CalendarMode
PresentationFramework (124)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (23)
43
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
138
if (OwningCalendar.DisplayMode ==
CalendarMode
.Month && childRow == 0)
212
private DateTimeAutomationPeer GetOrCreateDateTimeAutomationPeer(DateTime date,
CalendarMode
buttonMode)
217
private DateTimeAutomationPeer GetOrCreateDateTimeAutomationPeer(DateTime date,
CalendarMode
buttonMode, bool addParentInfo)
296
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer((DateTime)e.AddedItems[0],
CalendarMode
.Month);
308
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
321
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
353
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
370
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
414
supportedViews[0] = (int)
CalendarMode
.Month;
415
supportedViews[1] = (int)
CalendarMode
.Year;
416
supportedViews[2] = (int)
CalendarMode
.Decade;
446
this.OwningCalendar.DisplayMode = (
CalendarMode
)viewId;
475
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
506
CalendarMode
currentMode = 0;
510
currentMode =
CalendarMode
.Month;
557
private DateTime? GetNextDate(DateTimeAutomationPeer currentDatePeer,
CalendarMode
currentMode)
563
if (currentMode ==
CalendarMode
.Month)
565
else if (currentMode ==
CalendarMode
.Year)
567
else if (currentMode ==
CalendarMode
.Decade)
616
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
678
internal DateTimeCalendarModePair(DateTime date,
CalendarMode
mode)
684
CalendarMode
ButtonMode;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (6)
23
internal DateTimeAutomationPeer(DateTime date, Calendar owningCalendar,
CalendarMode
buttonMode)
64
internal
CalendarMode
ButtonMode
74
return ButtonMode ==
CalendarMode
.Month;
316
case
CalendarMode
.Month:
319
case
CalendarMode
.Year:
322
case
CalendarMode
.Decade:
System\Windows\Controls\Calendar.cs (73)
358
public
CalendarMode
DisplayMode
360
get { return (
CalendarMode
)GetValue(DisplayModeProperty); }
370
typeof(
CalendarMode
),
372
new FrameworkPropertyMetadata(
CalendarMode
.Month, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDisplayModePropertyChanged),
384
CalendarMode
mode = (
CalendarMode
)e.NewValue;
385
CalendarMode
oldMode = (
CalendarMode
)e.OldValue;
390
case
CalendarMode
.Month:
392
if (oldMode ==
CalendarMode
.Year || oldMode ==
CalendarMode
.Decade)
403
case
CalendarMode
.Year:
404
case
CalendarMode
.Decade:
405
if (oldMode ==
CalendarMode
.Month)
418
c.OnDisplayModeChanged(new CalendarModeChangedEventArgs((
CalendarMode
)e.OldValue, mode));
919
CalendarMode
newMode =
CalendarMode
.Month;
923
case
CalendarMode
.Month:
929
case
CalendarMode
.Year:
932
newMode =
CalendarMode
.Month;
936
case
CalendarMode
.Decade:
939
newMode =
CalendarMode
.Year;
954
FocusDate(this.DisplayMode ==
CalendarMode
.Month ? this.CurrentDate : this.DisplayDate);
960
private DateTime? GetDateOffset(DateTime date, int offset,
CalendarMode
displayMode)
965
case
CalendarMode
.Month:
971
case
CalendarMode
.Year:
977
case
CalendarMode
.Decade:
998
case
CalendarMode
.Month:
1007
case
CalendarMode
.Year:
1008
case
CalendarMode
.Decade:
1070
case
CalendarMode
.Month:
1076
case
CalendarMode
.Year:
1082
case
CalendarMode
.Decade:
1138
CalendarMode
mode = (
CalendarMode
)value;
1140
return mode ==
CalendarMode
.Month
1141
|| mode ==
CalendarMode
.Year
1142
|| mode ==
CalendarMode
.Decade;
1191
Debug.Assert(this.DisplayMode ==
CalendarMode
.Year);
1204
Debug.Assert(this.DisplayMode ==
CalendarMode
.Decade);
1249
if (this.DisplayMode ==
CalendarMode
.Month)
1328
case
CalendarMode
.Month:
1339
case
CalendarMode
.Year:
1343
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1355
case
CalendarMode
.Decade:
1359
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1377
case
CalendarMode
.Month:
1397
case
CalendarMode
.Year:
1404
case
CalendarMode
.Decade:
1417
case
CalendarMode
.Year:
1419
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1424
case
CalendarMode
.Decade:
1426
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1439
case
CalendarMode
.Month:
1447
case
CalendarMode
.Year:
1454
case
CalendarMode
.Decade:
1468
case
CalendarMode
.Month:
1475
case
CalendarMode
.Year:
1482
case
CalendarMode
.Decade:
1495
case
CalendarMode
.Month:
1502
case
CalendarMode
.Year:
1509
case
CalendarMode
.Decade:
1522
case
CalendarMode
.Month:
1529
case
CalendarMode
.Year:
1536
case
CalendarMode
.Decade:
1550
case
CalendarMode
.Month:
1557
case
CalendarMode
.Year:
1564
case
CalendarMode
.Decade:
1656
case
CalendarMode
.Month:
1660
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1672
case
CalendarMode
.Year:
1676
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Decade);
1688
case
CalendarMode
.Decade:
System\Windows\Controls\CalendarModeChangedEventArgs.cs (4)
18
public CalendarModeChangedEventArgs(
CalendarMode
oldMode,
CalendarMode
newMode)
27
public
CalendarMode
NewMode
36
public
CalendarMode
OldMode
System\Windows\Controls\DatePicker.cs (2)
918
this._calendar.DisplayMode =
CalendarMode
.Month;
953
if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.DisplayMode ==
CalendarMode
.Month))
System\Windows\Controls\Primitives\CalendarItem.cs (16)
99
private
CalendarMode
DisplayMode
103
return (this.Owner != null) ? this.Owner.DisplayMode :
CalendarMode
.Month;
215
case
CalendarMode
.Year:
218
case
CalendarMode
.Decade:
221
case
CalendarMode
.Month:
268
this.Owner.DisplayMode ==
CalendarMode
.Month &&
389
internal CalendarButton GetCalendarButton(DateTime date,
CalendarMode
mode)
391
Debug.Assert(mode !=
CalendarMode
.Month);
397
if (mode ==
CalendarMode
.Year)
448
case
CalendarMode
.Month:
454
case
CalendarMode
.Year:
455
case
CalendarMode
.Decade:
917
if (this.Owner.DisplayMode ==
CalendarMode
.Month)
919
this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty,
CalendarMode
.Year);
923
Debug.Assert(this.Owner.DisplayMode ==
CalendarMode
.Year);
925
this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty,
CalendarMode
.Decade);