124 references to CalendarMode
PresentationFramework (124)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (23)
49
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
144
if (OwningCalendar.DisplayMode ==
CalendarMode
.Month && childRow == 0)
218
private DateTimeAutomationPeer GetOrCreateDateTimeAutomationPeer(DateTime date,
CalendarMode
buttonMode)
223
private DateTimeAutomationPeer GetOrCreateDateTimeAutomationPeer(DateTime date,
CalendarMode
buttonMode, bool addParentInfo)
302
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer((DateTime)e.AddedItems[0],
CalendarMode
.Month);
314
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
327
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
359
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
376
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
420
supportedViews[0] = (int)
CalendarMode
.Month;
421
supportedViews[1] = (int)
CalendarMode
.Year;
422
supportedViews[2] = (int)
CalendarMode
.Decade;
452
this.OwningCalendar.DisplayMode = (
CalendarMode
)viewId;
481
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
512
CalendarMode
currentMode = 0;
516
currentMode =
CalendarMode
.Month;
563
private DateTime? GetNextDate(DateTimeAutomationPeer currentDatePeer,
CalendarMode
currentMode)
569
if (currentMode ==
CalendarMode
.Month)
571
else if (currentMode ==
CalendarMode
.Year)
573
else if (currentMode ==
CalendarMode
.Decade)
622
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
684
internal DateTimeCalendarModePair(DateTime date,
CalendarMode
mode)
690
CalendarMode
ButtonMode;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (6)
30
internal DateTimeAutomationPeer(DateTime date, Calendar owningCalendar,
CalendarMode
buttonMode)
71
internal
CalendarMode
ButtonMode
81
return ButtonMode ==
CalendarMode
.Month;
323
case
CalendarMode
.Month:
326
case
CalendarMode
.Year:
329
case
CalendarMode
.Decade:
System\Windows\Controls\Calendar.cs (73)
362
public
CalendarMode
DisplayMode
364
get { return (
CalendarMode
)GetValue(DisplayModeProperty); }
374
typeof(
CalendarMode
),
376
new FrameworkPropertyMetadata(
CalendarMode
.Month, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDisplayModePropertyChanged),
388
CalendarMode
mode = (
CalendarMode
)e.NewValue;
389
CalendarMode
oldMode = (
CalendarMode
)e.OldValue;
394
case
CalendarMode
.Month:
396
if (oldMode ==
CalendarMode
.Year || oldMode ==
CalendarMode
.Decade)
407
case
CalendarMode
.Year:
408
case
CalendarMode
.Decade:
409
if (oldMode ==
CalendarMode
.Month)
422
c.OnDisplayModeChanged(new CalendarModeChangedEventArgs((
CalendarMode
)e.OldValue, mode));
923
CalendarMode
newMode =
CalendarMode
.Month;
927
case
CalendarMode
.Month:
933
case
CalendarMode
.Year:
936
newMode =
CalendarMode
.Month;
940
case
CalendarMode
.Decade:
943
newMode =
CalendarMode
.Year;
958
FocusDate(this.DisplayMode ==
CalendarMode
.Month ? this.CurrentDate : this.DisplayDate);
964
private DateTime? GetDateOffset(DateTime date, int offset,
CalendarMode
displayMode)
969
case
CalendarMode
.Month:
975
case
CalendarMode
.Year:
981
case
CalendarMode
.Decade:
1002
case
CalendarMode
.Month:
1011
case
CalendarMode
.Year:
1012
case
CalendarMode
.Decade:
1074
case
CalendarMode
.Month:
1080
case
CalendarMode
.Year:
1086
case
CalendarMode
.Decade:
1142
CalendarMode
mode = (
CalendarMode
)value;
1144
return mode ==
CalendarMode
.Month
1145
|| mode ==
CalendarMode
.Year
1146
|| mode ==
CalendarMode
.Decade;
1195
Debug.Assert(this.DisplayMode ==
CalendarMode
.Year);
1208
Debug.Assert(this.DisplayMode ==
CalendarMode
.Decade);
1253
if (this.DisplayMode ==
CalendarMode
.Month)
1332
case
CalendarMode
.Month:
1343
case
CalendarMode
.Year:
1347
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1359
case
CalendarMode
.Decade:
1363
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1381
case
CalendarMode
.Month:
1401
case
CalendarMode
.Year:
1408
case
CalendarMode
.Decade:
1421
case
CalendarMode
.Year:
1423
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1428
case
CalendarMode
.Decade:
1430
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1443
case
CalendarMode
.Month:
1451
case
CalendarMode
.Year:
1458
case
CalendarMode
.Decade:
1472
case
CalendarMode
.Month:
1479
case
CalendarMode
.Year:
1486
case
CalendarMode
.Decade:
1499
case
CalendarMode
.Month:
1506
case
CalendarMode
.Year:
1513
case
CalendarMode
.Decade:
1526
case
CalendarMode
.Month:
1533
case
CalendarMode
.Year:
1540
case
CalendarMode
.Decade:
1554
case
CalendarMode
.Month:
1561
case
CalendarMode
.Year:
1568
case
CalendarMode
.Decade:
1660
case
CalendarMode
.Month:
1664
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1676
case
CalendarMode
.Year:
1680
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Decade);
1692
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)
922
this._calendar.DisplayMode =
CalendarMode
.Month;
957
if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.DisplayMode ==
CalendarMode
.Month))
System\Windows\Controls\Primitives\CalendarItem.cs (16)
104
private
CalendarMode
DisplayMode
108
return (this.Owner != null) ? this.Owner.DisplayMode :
CalendarMode
.Month;
220
case
CalendarMode
.Year:
223
case
CalendarMode
.Decade:
226
case
CalendarMode
.Month:
273
this.Owner.DisplayMode ==
CalendarMode
.Month &&
394
internal CalendarButton GetCalendarButton(DateTime date,
CalendarMode
mode)
396
Debug.Assert(mode !=
CalendarMode
.Month);
402
if (mode ==
CalendarMode
.Year)
453
case
CalendarMode
.Month:
459
case
CalendarMode
.Year:
460
case
CalendarMode
.Decade:
922
if (this.Owner.DisplayMode ==
CalendarMode
.Month)
924
this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty,
CalendarMode
.Year);
928
Debug.Assert(this.Owner.DisplayMode ==
CalendarMode
.Year);
930
this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty,
CalendarMode
.Decade);