diff --git a/XCalendar.Forms/Views/CalendarView.xaml b/XCalendar.Forms/Views/CalendarView.xaml index 00b0c63..ee51a13 100644 --- a/XCalendar.Forms/Views/CalendarView.xaml +++ b/XCalendar.Forms/Views/CalendarView.xaml @@ -87,8 +87,7 @@ ControlTemplate="{Binding DaysViewTemplate, Source={x:Reference CalendarView_Unique}}" DayTemplate="{Binding DayTemplate, Source={x:Reference CalendarView_Unique}}" DaysOfWeek="{Binding DaysOfWeek, Source={x:Reference CalendarView_Unique}}" - HeightRequest="{Binding DaysViewHeightRequest, Source={x:Reference CalendarView_Unique}}" - NavigatedDate="{Binding NavigatedDate, Source={x:Reference CalendarView_Unique}}"/> + HeightRequest="{Binding DaysViewHeightRequest, Source={x:Reference CalendarView_Unique}}"/> diff --git a/XCalendar.Forms/Views/DaysView.xaml.cs b/XCalendar.Forms/Views/DaysView.xaml.cs index 05f3163..2d01abf 100644 --- a/XCalendar.Forms/Views/DaysView.xaml.cs +++ b/XCalendar.Forms/Views/DaysView.xaml.cs @@ -12,11 +12,6 @@ public partial class DaysView : ContentView #region Properties #region Bindable Properties - public DateTime NavigatedDate - { - get { return (DateTime)GetValue(NavigatedDateProperty); } - set { SetValue(NavigatedDateProperty, value); } - } public IEnumerable Days { get { return (IEnumerable)GetValue(DaysProperty); } @@ -37,7 +32,6 @@ public DataTemplate DayTemplate } #region Bindable Properties Initialisers - public static readonly BindableProperty NavigatedDateProperty = BindableProperty.Create(nameof(NavigatedDate), typeof(DateTime), typeof(DaysView), DateTime.Today); public static readonly BindableProperty DaysProperty = BindableProperty.Create(nameof(DaysProperty), typeof(IEnumerable), typeof(DaysView), propertyChanged: DaysPropertyChanged); public static readonly BindableProperty DaysOfWeekProperty = BindableProperty.Create(nameof(DaysOfWeek), typeof(IList), typeof(DaysView)); public static readonly BindableProperty DayTemplateProperty = BindableProperty.Create(nameof(DayTemplate), typeof(DataTemplate), typeof(DaysView)); diff --git a/XCalendar.Maui/Views/CalendarView.xaml b/XCalendar.Maui/Views/CalendarView.xaml index 7cb2b28..4ca3181 100644 --- a/XCalendar.Maui/Views/CalendarView.xaml +++ b/XCalendar.Maui/Views/CalendarView.xaml @@ -93,8 +93,7 @@ ControlTemplate="{Binding DaysViewTemplate, Source={x:Reference CalendarView_Unique}}" DayTemplate="{Binding DayTemplate, Source={x:Reference CalendarView_Unique}}" DaysOfWeek="{Binding DaysOfWeek, Source={x:Reference CalendarView_Unique}}" - HeightRequest="{Binding DaysViewHeightRequest, Source={x:Reference CalendarView_Unique}}" - NavigatedDate="{Binding NavigatedDate, Source={x:Reference CalendarView_Unique}}"/> + HeightRequest="{Binding DaysViewHeightRequest, Source={x:Reference CalendarView_Unique}}"/> diff --git a/XCalendar.Maui/Views/DaysView.xaml.cs b/XCalendar.Maui/Views/DaysView.xaml.cs index 2bd722a..63b1938 100644 --- a/XCalendar.Maui/Views/DaysView.xaml.cs +++ b/XCalendar.Maui/Views/DaysView.xaml.cs @@ -7,11 +7,6 @@ public partial class DaysView : ContentView #region Properties #region Bindable Properties - public DateTime NavigatedDate - { - get { return (DateTime)GetValue(NavigatedDateProperty); } - set { SetValue(NavigatedDateProperty, value); } - } public IEnumerable Days { get { return (IEnumerable)GetValue(DaysProperty); } @@ -32,7 +27,6 @@ public DataTemplate DayTemplate } #region Bindable Properties Initialisers - public static readonly BindableProperty NavigatedDateProperty = BindableProperty.Create(nameof(NavigatedDate), typeof(DateTime), typeof(DaysView), DateTime.Today); public static readonly BindableProperty DaysProperty = BindableProperty.Create(nameof(DaysProperty), typeof(IEnumerable), typeof(DaysView), propertyChanged: DaysPropertyChanged); public static readonly BindableProperty DaysOfWeekProperty = BindableProperty.Create(nameof(DaysOfWeek), typeof(IList), typeof(DaysView)); public static readonly BindableProperty DayTemplateProperty = BindableProperty.Create(nameof(DayTemplate), typeof(DataTemplate), typeof(DaysView));