Skip to content

Commit

Permalink
Merge pull request #70 from ME-MarvinE/dev
Browse files Browse the repository at this point in the history
4.2.0 Changes
  • Loading branch information
ME-MarvinE authored Oct 20, 2022
2 parents a29362f + 62fb548 commit bb1dfbc
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 39 deletions.
3 changes: 0 additions & 3 deletions XCalendar.Core/FodyWeavers.xml

This file was deleted.

2 changes: 1 addition & 1 deletion XCalendar.Forms/Views/CalendarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={x:Reference CalendarView_Unique}}"
BackwardsArrowCommandParameter="{Binding BackwardsArrowCommandParameter, Source={x:Reference CalendarView_Unique}}"
ControlTemplate="{Binding NavigationTemplate, Source={x:Reference CalendarView_Unique}}"
ControlTemplate="{Binding NavigationViewTemplate, Source={x:Reference CalendarView_Unique}}"
ForwardsArrowCommand="{Binding ForwardsArrowCommand, Source={x:Reference CalendarView_Unique}}"
ForwardsArrowCommandParameter="{Binding ForwardsArrowCommandParameter, Source={x:Reference CalendarView_Unique}}"
Text="{Binding NavigatedDate, StringFormat='{0:MMMM yyy}', Source={x:Reference CalendarView_Unique}}"/>
Expand Down
8 changes: 4 additions & 4 deletions XCalendar.Forms/Views/CalendarView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public double DaysViewHeightRequest
/// <summary>
/// The template used to display the view for navigating the calendar.
/// </summary>
public ControlTemplate NavigationTemplate
public ControlTemplate NavigationViewTemplate
{
get { return (ControlTemplate)GetValue(NavigationTemplateProperty); }
set { SetValue(NavigationTemplateProperty, value); }
get { return (ControlTemplate)GetValue(NavigationViewTemplateProperty); }
set { SetValue(NavigationViewTemplateProperty, value); }
}
/// <summary>
/// The template used to display a <see cref="ICalendarDay"/>
Expand All @@ -128,7 +128,7 @@ public DataTemplate DayTemplate
public static readonly BindableProperty DayNameHorizontalSpacingProperty = BindableProperty.Create(nameof(DayNameHorizontalSpacing), typeof(double), typeof(CalendarView));
public static readonly BindableProperty DaysViewTemplateProperty = BindableProperty.Create(nameof(DaysViewTemplate), typeof(ControlTemplate), typeof(CalendarView));
public static readonly BindableProperty DaysViewHeightRequestProperty = BindableProperty.Create(nameof(DaysViewHeightRequest), typeof(double), typeof(CalendarView), 300d);
public static readonly BindableProperty NavigationTemplateProperty = BindableProperty.Create(nameof(NavigationTemplate), typeof(ControlTemplate), typeof(CalendarView));
public static readonly BindableProperty NavigationViewTemplateProperty = BindableProperty.Create(nameof(NavigationViewTemplate), typeof(ControlTemplate), typeof(CalendarView));
#endregion

#endregion
Expand Down
2 changes: 1 addition & 1 deletion XCalendar.Forms/XCalendar.Forms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Description>A plugin for Xamarin Forms providing a Calendar API and DateTime extensions along with custom controls to consume them with.</Description>
<PackageId>$(AssemblyName)</PackageId>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<Version>4.1.0</Version>
<Version>4.2.0</Version>
<RepositoryUrl>https://github.com/ME-MarvinE/XCalendar</RepositoryUrl>
<PackageTags>csharp; dotnet; cross-platform; calendar; calendar-component; plugin; xamarin; xamarinforms; xamarin-forms;</PackageTags>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
Expand Down
2 changes: 1 addition & 1 deletion XCalendar.Maui/Views/CalendarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={x:Reference CalendarView_Unique}}"
BackwardsArrowCommandParameter="{Binding BackwardsArrowCommandParameter, Source={x:Reference CalendarView_Unique}}"
ControlTemplate="{Binding NavigationTemplate, Source={x:Reference CalendarView_Unique}}"
ControlTemplate="{Binding NavigationViewTemplate, Source={x:Reference CalendarView_Unique}}"
ForwardsArrowCommand="{Binding ForwardsArrowCommand, Source={x:Reference CalendarView_Unique}}"
ForwardsArrowCommandParameter="{Binding ForwardsArrowCommandParameter, Source={x:Reference CalendarView_Unique}}"
Text="{Binding NavigatedDate, StringFormat='{0:MMMM yyy}', Source={x:Reference CalendarView_Unique}}"/>
Expand Down
8 changes: 4 additions & 4 deletions XCalendar.Maui/Views/CalendarView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ public double DaysViewHeightRequest
/// <summary>
/// The template used to display the view for navigating the calendar.
/// </summary>
public ControlTemplate NavigationTemplate
public ControlTemplate NavigationViewTemplate
{
get { return (ControlTemplate)GetValue(NavigationTemplateProperty); }
set { SetValue(NavigationTemplateProperty, value); }
get { return (ControlTemplate)GetValue(NavigationViewTemplateProperty); }
set { SetValue(NavigationViewTemplateProperty, value); }
}
/// <summary>
/// The template used to display a <see cref="ICalendarDay"/>
Expand All @@ -123,7 +123,7 @@ public DataTemplate DayTemplate
public static readonly BindableProperty DayNameHorizontalSpacingProperty = BindableProperty.Create(nameof(DayNameHorizontalSpacing), typeof(double), typeof(CalendarView));
public static readonly BindableProperty DaysViewTemplateProperty = BindableProperty.Create(nameof(DaysViewTemplate), typeof(ControlTemplate), typeof(CalendarView));
public static readonly BindableProperty DaysViewHeightRequestProperty = BindableProperty.Create(nameof(DaysViewHeightRequest), typeof(double), typeof(CalendarView), 300d);
public static readonly BindableProperty NavigationTemplateProperty = BindableProperty.Create(nameof(NavigationTemplate), typeof(ControlTemplate), typeof(CalendarView));
public static readonly BindableProperty NavigationViewTemplateProperty = BindableProperty.Create(nameof(NavigationViewTemplate), typeof(ControlTemplate), typeof(CalendarView));
#endregion

#endregion
Expand Down
2 changes: 1 addition & 1 deletion XCalendar.Maui/XCalendar.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
<Authors>MarvinE</Authors>
<Version>4.1.0-pre1</Version>
<Version>4.2.0</Version>
<Description>A plugin for .NET MAUI providing a Calendar API and DateTime extensions along with custom controls to consume them with.</Description>
<PackageIcon>XCalendar Nuget Icon.png</PackageIcon>
<RepositoryUrl>https://github.com/ME-MarvinE/XCalendar</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
ForwardsArrowCommandParameter="{Binding Calendar.ForwardsNavigationAmount, Source={x:Reference This}}"
NavigatedDate="{Binding Calendar.NavigatedDate, Source={x:Reference This}}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
ArrowColor="{StaticResource ContentTextColor}"
Expand All @@ -81,7 +81,7 @@
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"
TextColor="{StaticResource ContentTextColor}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayNameTemplate>
<DataTemplate x:DataType="{x:Type System:DayOfWeek}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={RelativeSource TemplatedParent}}"
Expand All @@ -34,7 +34,7 @@
Style="{StaticResource DefaultNavigationViewStyle}"
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type xcModels:CalendarDay}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
NavigatedDate="{Binding EventCalendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
ArrowColor="{StaticResource ContentTextColor}"
Expand All @@ -67,7 +67,7 @@
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"
TextColor="{StaticResource ContentTextColor}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type Models:EventDay}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
ArrowBackgroundColor="{Binding NavigationArrowBackgroundColor}"
Expand All @@ -952,7 +952,7 @@
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"
TextColor="{Binding NavigationTextColor}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type xcModels:CalendarDay}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={x:RelativeSource TemplatedParent}}"
Expand All @@ -46,7 +46,7 @@
Style="{StaticResource DefaultNavigationViewStyle}"
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<!-- Not Required, used only for styling. -->
<xc:CalendarView.DayTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={RelativeSource TemplatedParent}}"
Expand All @@ -35,7 +35,7 @@
Style="{StaticResource DefaultNavigationViewStyle}"
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type xcModels:CalendarDay}">
Expand Down
4 changes: 2 additions & 2 deletions XCalendarMauiSample/Popups/DatePickerDialogPopup.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
ForwardsArrowCommandParameter="{Binding Calendar.ForwardsNavigationAmount, Source={x:Reference This}}"
NavigatedDate="{Binding Calendar.NavigatedDate, Source={x:Reference This}}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
ArrowColor="{StaticResource ContentTextColor}"
Expand All @@ -81,7 +81,7 @@
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"
TextColor="{StaticResource ContentTextColor}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayNameTemplate>
<DataTemplate x:DataType="{x:Type System:DayOfWeek}">
Expand Down
4 changes: 2 additions & 2 deletions XCalendarMauiSample/Views/CustomisingADayExamplePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={RelativeSource TemplatedParent}}"
Expand All @@ -34,7 +34,7 @@
Style="{StaticResource DefaultNavigationViewStyle}"
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type xcModels:CalendarDay}">
Expand Down
4 changes: 2 additions & 2 deletions XCalendarMauiSample/Views/EventCalendarExamplePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
NavigatedDate="{Binding EventCalendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
ArrowColor="{StaticResource ContentTextColor}"
Expand All @@ -68,7 +68,7 @@
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"
TextColor="{StaticResource ContentTextColor}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type Models:EventDay}">
Expand Down
4 changes: 2 additions & 2 deletions XCalendarMauiSample/Views/PlaygroundPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
ArrowBackgroundColor="{Binding NavigationArrowBackgroundColor}"
Expand All @@ -994,7 +994,7 @@
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"
TextColor="{Binding NavigationTextColor}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type xcModels:CalendarDay}">
Expand Down
4 changes: 2 additions & 2 deletions XCalendarMauiSample/Views/SelectionExamplePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={RelativeSource TemplatedParent}}"
Expand All @@ -47,7 +47,7 @@
Style="{StaticResource DefaultNavigationViewStyle}"
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<!-- Not Required, used only for styling. -->
<xc:CalendarView.DayTemplate>
Expand Down
4 changes: 2 additions & 2 deletions XCalendarMauiSample/Views/UsingDayViewExamplePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
NavigatedDate="{Binding Calendar.NavigatedDate}"
Style="{StaticResource DefaultCalendarViewStyle}">

<xc:CalendarView.NavigationTemplate>
<xc:CalendarView.NavigationViewTemplate>
<ControlTemplate>
<xc:NavigationView
BackwardsArrowCommand="{Binding BackwardsArrowCommand, Source={RelativeSource TemplatedParent}}"
Expand All @@ -35,7 +35,7 @@
Style="{StaticResource DefaultNavigationViewStyle}"
Text="{Binding Text, Source={RelativeSource TemplatedParent}}"/>
</ControlTemplate>
</xc:CalendarView.NavigationTemplate>
</xc:CalendarView.NavigationViewTemplate>

<xc:CalendarView.DayTemplate>
<DataTemplate x:DataType="{x:Type xcModels:CalendarDay}">
Expand Down

0 comments on commit bb1dfbc

Please sign in to comment.