Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 12310bb

Browse files
authored
Merge pull request #483 from telerik/Aleks/implement-displayModeChanged-event
Implemented event that invokes on display mode changed.
2 parents c3b8db5 + 1431b82 commit 12310bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Controls/Input/Input.UWP/Calendar/View/RadCalendar.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,11 @@ public event EventHandler<CurrentSelectionChangedEventArgs> SelectionChanged
440440
}
441441
}
442442

443+
/// <summary>
444+
/// Occurs when the <see cref="DisplayMode"/> property is changed.
445+
/// </summary>
446+
public event EventHandler<EventArgs> DisplayModeChanged;
447+
443448
/// <summary>
444449
/// Gets the <see cref="CommandService"/> instance that manages the commanding behavior of this instance.
445450
/// </summary>
@@ -2681,6 +2686,8 @@ private static void OnDisplayModePropertyChanged(DependencyObject target, Depend
26812686
calendar.FetchNewAppointments();
26822687
calendar.model.multiDayViewModel.updateFlag = MultiDayViewUpdateFlag.All;
26832688
}
2689+
2690+
calendar.DisplayModeChanged?.Invoke(calendar, new EventArgs());
26842691
}
26852692

26862693
private static void OnCalendarViewHeaderFormatPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)

0 commit comments

Comments
 (0)