124 references to CalendarMode
PresentationFramework (124)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (23)
50
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
145
if (OwningCalendar.DisplayMode ==
CalendarMode
.Month && childRow == 0)
219
private DateTimeAutomationPeer GetOrCreateDateTimeAutomationPeer(DateTime date,
CalendarMode
buttonMode)
230
private DateTimeAutomationPeer GetOrCreateDateTimeAutomationPeer(DateTime date,
CalendarMode
buttonMode, bool addParentInfo)
310
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer((DateTime)e.AddedItems[0],
CalendarMode
.Month);
322
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
335
DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
367
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
384
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
428
supportedViews[0] = (int)
CalendarMode
.Month;
429
supportedViews[1] = (int)
CalendarMode
.Year;
430
supportedViews[2] = (int)
CalendarMode
.Decade;
462
this.OwningCalendar.DisplayMode = (
CalendarMode
)viewId;
491
AutomationPeer peer = GetOrCreateDateTimeAutomationPeer(date,
CalendarMode
.Month);
522
CalendarMode
currentMode = 0;
526
currentMode =
CalendarMode
.Month;
573
private DateTime? GetNextDate(DateTimeAutomationPeer currentDatePeer,
CalendarMode
currentMode)
579
if (currentMode ==
CalendarMode
.Month)
581
else if (currentMode ==
CalendarMode
.Year)
583
else if (currentMode ==
CalendarMode
.Decade)
632
if (this.OwningCalendar.DisplayMode ==
CalendarMode
.Month)
695
internal DateTimeCalendarModePair(DateTime date,
CalendarMode
mode)
701
CalendarMode
ButtonMode;
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (6)
31
internal DateTimeAutomationPeer(DateTime date, Calendar owningCalendar,
CalendarMode
buttonMode)
79
internal
CalendarMode
ButtonMode
89
return ButtonMode ==
CalendarMode
.Month;
331
case
CalendarMode
.Month:
334
case
CalendarMode
.Year:
337
case
CalendarMode
.Decade:
src\Framework\System\Windows\Controls\Calendar.cs (73)
363
public
CalendarMode
DisplayMode
365
get { return (
CalendarMode
)GetValue(DisplayModeProperty); }
375
typeof(
CalendarMode
),
377
new FrameworkPropertyMetadata(
CalendarMode
.Month, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnDisplayModePropertyChanged),
389
CalendarMode
mode = (
CalendarMode
)e.NewValue;
390
CalendarMode
oldMode = (
CalendarMode
)e.OldValue;
395
case
CalendarMode
.Month:
397
if (oldMode ==
CalendarMode
.Year || oldMode ==
CalendarMode
.Decade)
408
case
CalendarMode
.Year:
409
case
CalendarMode
.Decade:
410
if (oldMode ==
CalendarMode
.Month)
423
c.OnDisplayModeChanged(new CalendarModeChangedEventArgs((
CalendarMode
)e.OldValue, mode));
924
CalendarMode
newMode =
CalendarMode
.Month;
928
case
CalendarMode
.Month:
934
case
CalendarMode
.Year:
937
newMode =
CalendarMode
.Month;
941
case
CalendarMode
.Decade:
944
newMode =
CalendarMode
.Year;
959
FocusDate(this.DisplayMode ==
CalendarMode
.Month ? this.CurrentDate : this.DisplayDate);
965
private DateTime? GetDateOffset(DateTime date, int offset,
CalendarMode
displayMode)
970
case
CalendarMode
.Month:
976
case
CalendarMode
.Year:
982
case
CalendarMode
.Decade:
1003
case
CalendarMode
.Month:
1012
case
CalendarMode
.Year:
1013
case
CalendarMode
.Decade:
1075
case
CalendarMode
.Month:
1081
case
CalendarMode
.Year:
1087
case
CalendarMode
.Decade:
1143
CalendarMode
mode = (
CalendarMode
)value;
1145
return mode ==
CalendarMode
.Month
1146
|| mode ==
CalendarMode
.Year
1147
|| mode ==
CalendarMode
.Decade;
1196
Debug.Assert(this.DisplayMode ==
CalendarMode
.Year);
1209
Debug.Assert(this.DisplayMode ==
CalendarMode
.Decade);
1254
if (this.DisplayMode ==
CalendarMode
.Month)
1333
case
CalendarMode
.Month:
1344
case
CalendarMode
.Year:
1348
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1360
case
CalendarMode
.Decade:
1364
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1382
case
CalendarMode
.Month:
1405
case
CalendarMode
.Year:
1412
case
CalendarMode
.Decade:
1425
case
CalendarMode
.Year:
1427
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Month);
1432
case
CalendarMode
.Decade:
1434
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1447
case
CalendarMode
.Month:
1455
case
CalendarMode
.Year:
1462
case
CalendarMode
.Decade:
1476
case
CalendarMode
.Month:
1483
case
CalendarMode
.Year:
1490
case
CalendarMode
.Decade:
1503
case
CalendarMode
.Month:
1510
case
CalendarMode
.Year:
1517
case
CalendarMode
.Decade:
1530
case
CalendarMode
.Month:
1537
case
CalendarMode
.Year:
1544
case
CalendarMode
.Decade:
1558
case
CalendarMode
.Month:
1565
case
CalendarMode
.Year:
1572
case
CalendarMode
.Decade:
1664
case
CalendarMode
.Month:
1668
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Year);
1680
case
CalendarMode
.Year:
1684
this.SetCurrentValueInternal(DisplayModeProperty,
CalendarMode
.Decade);
1696
case
CalendarMode
.Decade:
src\Framework\System\Windows\Controls\CalendarModeChangedEventArgs.cs (4)
19
public CalendarModeChangedEventArgs(
CalendarMode
oldMode,
CalendarMode
newMode)
28
public
CalendarMode
NewMode
37
public
CalendarMode
OldMode
src\Framework\System\Windows\Controls\DatePicker.cs (2)
911
this._calendar.DisplayMode =
CalendarMode
.Month;
946
if (args.Key == Key.Escape || ((args.Key == Key.Enter || args.Key == Key.Space) && c.DisplayMode ==
CalendarMode
.Month))
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (16)
105
private
CalendarMode
DisplayMode
109
return (this.Owner != null) ? this.Owner.DisplayMode :
CalendarMode
.Month;
221
case
CalendarMode
.Year:
224
case
CalendarMode
.Decade:
227
case
CalendarMode
.Month:
274
this.Owner.DisplayMode ==
CalendarMode
.Month &&
395
internal CalendarButton GetCalendarButton(DateTime date,
CalendarMode
mode)
397
Debug.Assert(mode !=
CalendarMode
.Month);
403
if (mode ==
CalendarMode
.Year)
454
case
CalendarMode
.Month:
460
case
CalendarMode
.Year:
461
case
CalendarMode
.Decade:
924
if (this.Owner.DisplayMode ==
CalendarMode
.Month)
926
this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty,
CalendarMode
.Year);
930
Debug.Assert(this.Owner.DisplayMode ==
CalendarMode
.Year);
932
this.Owner.SetCurrentValueInternal(Calendar.DisplayModeProperty,
CalendarMode
.Decade);