Skip to content

Commit

Permalink
Merge pull request #69 from ME-MarvinE/dev
Browse files Browse the repository at this point in the history
Remove property 'NavigatedDate' from DaysView
  • Loading branch information
ME-MarvinE authored Oct 15, 2022
2 parents c74760d + f84bcef commit a29362f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
3 changes: 1 addition & 2 deletions XCalendar.Forms/Views/CalendarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"/>

</StackLayout>

Expand Down
6 changes: 0 additions & 6 deletions XCalendar.Forms/Views/DaysView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ICalendarDay> Days
{
get { return (IEnumerable<ICalendarDay>)GetValue(DaysProperty); }
Expand All @@ -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<ICalendarDay>), typeof(DaysView), propertyChanged: DaysPropertyChanged);
public static readonly BindableProperty DaysOfWeekProperty = BindableProperty.Create(nameof(DaysOfWeek), typeof(IList<DayOfWeek>), typeof(DaysView));
public static readonly BindableProperty DayTemplateProperty = BindableProperty.Create(nameof(DayTemplate), typeof(DataTemplate), typeof(DaysView));
Expand Down
3 changes: 1 addition & 2 deletions XCalendar.Maui/Views/CalendarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"/>

</VerticalStackLayout>

Expand Down
6 changes: 0 additions & 6 deletions XCalendar.Maui/Views/DaysView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ICalendarDay> Days
{
get { return (IEnumerable<ICalendarDay>)GetValue(DaysProperty); }
Expand All @@ -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<ICalendarDay>), typeof(DaysView), propertyChanged: DaysPropertyChanged);
public static readonly BindableProperty DaysOfWeekProperty = BindableProperty.Create(nameof(DaysOfWeek), typeof(IList<DayOfWeek>), typeof(DaysView));
public static readonly BindableProperty DayTemplateProperty = BindableProperty.Create(nameof(DayTemplate), typeof(DataTemplate), typeof(DaysView));
Expand Down

0 comments on commit a29362f

Please sign in to comment.