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)
413
supportedViews[0] = (int)
CalendarMode
.Month;
414
supportedViews[1] = (int)
CalendarMode
.Year;
415
supportedViews[2] = (int)
CalendarMode
.Decade;
445
this.OwningCalendar.DisplayMode = (
CalendarMode
)viewId;
474
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
505
CalendarMode
currentMode = 0;
509
currentMode =
CalendarMode
.Month;
556
private DateTime? GetNextDate(DateTimeAutomationPeer currentDatePeer,
CalendarMode
currentMode)
562
if (currentMode ==
CalendarMode
.Month)
564
else if (currentMode ==
CalendarMode
.Year)
566
else if (currentMode ==
CalendarMode
.Decade)
615
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
677
internal DateTimeCalendarModePair(DateTime date,
CalendarMode
mode)
683
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));
917
CalendarMode
newMode =
CalendarMode
.Month;
921
case
CalendarMode
.Month:
927
case
CalendarMode
.Year:
930
newMode =
CalendarMode
.Month;
934
case
CalendarMode
.Decade:
937
newMode =
CalendarMode
.Year;
952
FocusDate(this.DisplayMode ==
CalendarMode
.Month ? this.CurrentDate : this.DisplayDate);
958
private DateTime? GetDateOffset(DateTime date, int offset,
CalendarMode
displayMode)
963
case
CalendarMode
.Month:
969
case
CalendarMode
.Year:
975
case
CalendarMode
.Decade:
996
case
CalendarMode
.Month:
1005
case
CalendarMode
.Year:
1006
case
CalendarMode
.Decade:
1068
case
CalendarMode
.Month:
1074
case
CalendarMode
.Year:
1080
case
CalendarMode
.Decade:
1136
CalendarMode
mode = (
CalendarMode
)value;
1138
return mode ==
CalendarMode
.Month
1139
|| mode ==
CalendarMode
.Year
1140
|| mode ==
CalendarMode
.Decade;
1189
Debug.Assert(this.DisplayMode ==
CalendarMode
.Year);
1202
Debug.Assert(this.DisplayMode ==
CalendarMode
.Decade);
1247
if (this.DisplayMode ==
CalendarMode
.Month)
1326
case
CalendarMode
.Month:
1337
case
CalendarMode
.Year:
1341
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1353
case
CalendarMode
.Decade:
1357
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1375
case
CalendarMode
.Month:
1395
case
CalendarMode
.Year:
1402
case
CalendarMode
.Decade:
1415
case
CalendarMode
.Year:
1417
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1422
case
CalendarMode
.Decade:
1424
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1437
case
CalendarMode
.Month:
1445
case
CalendarMode
.Year:
1452
case
CalendarMode
.Decade:
1466
case
CalendarMode
.Month:
1473
case
CalendarMode
.Year:
1480
case
CalendarMode
.Decade:
1493
case
CalendarMode
.Month:
1500
case
CalendarMode
.Year:
1507
case
CalendarMode
.Decade:
1520
case
CalendarMode
.Month:
1527
case
CalendarMode
.Year:
1534
case
CalendarMode
.Decade:
1548
case
CalendarMode
.Month:
1555
case
CalendarMode
.Year:
1562
case
CalendarMode
.Decade:
1654
case
CalendarMode
.Month:
1658
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1670
case
CalendarMode
.Year:
1674
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Decade);
1686
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);