Bunch of interaction updates for the calendar item control.
This commit is contained in:
12
Wino.Calendar/Helpers/CalendarXamlHelpers.cs
Normal file
12
Wino.Calendar/Helpers/CalendarXamlHelpers.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Linq;
|
||||
using Wino.Calendar.ViewModels.Data;
|
||||
using Wino.Core.Domain.Collections;
|
||||
|
||||
namespace Wino.Calendar.Helpers
|
||||
{
|
||||
public static class CalendarXamlHelpers
|
||||
{
|
||||
public static CalendarItemViewModel GetFirstAllDayEvent(CalendarEventCollection collection)
|
||||
=> (CalendarItemViewModel)collection.AllDayEvents.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user