Skip to content

Commit

Permalink
Added atomation-id for day buttons.
Browse files Browse the repository at this point in the history
.net9.0 support
  • Loading branch information
sebarslan committed Dec 20, 2024
1 parent 23bed38 commit 88bdcfa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
</ItemGroup>

Expand Down
18 changes: 11 additions & 7 deletions Maui.NullableDateTimePicker/Maui.NullableDateTimePicker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<Version>2.4.0</Version>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Images\*" />
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
Expand All @@ -32,16 +36,16 @@
</None>
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0'))">
<PackageReference Include="CommunityToolkit.Maui" Version="6.1.0" />
<ItemGroup Condition="$(TargetFramework.StartsWith('net8.0')) == true">
<PackageReference Include="CommunityToolkit.Maui" Version="9.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0')) != true">
<ItemGroup Condition="$(TargetFramework.StartsWith('net9.0')) == true">
<PackageReference Include="CommunityToolkit.Maui" Version="9.1.0" />
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Images\*" />
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ private async Task InitContent()
{
Button button = new()
{
AutomationId = $"{_options.AutomationId}_CalendarDayButton_{day}",
Text = day.ToString(),
Style = _dayStyle,
IsEnabled = true
Expand All @@ -792,6 +793,7 @@ private async Task InitContent()

_calendarGrid = new Grid
{
AutomationId = $"{_options.AutomationId}_CalendarGrid",
BackgroundColor = _options.BodyBackgroundColor ?? (Application.Current.RequestedTheme == AppTheme.Dark ? Color.FromRgba("#434343") : Colors.White),
VerticalOptions = LayoutOptions.Fill,
HorizontalOptions = LayoutOptions.Fill,
Expand Down

0 comments on commit 88bdcfa

Please sign in to comment.