Skip to content

Commit eaf30b8

Browse files
Merge pull request #115 from HorusSoftwareUY/feature/dot-net-10
Feature/dot net 10
2 parents 2c74b5f + 5ca6d97 commit eaf30b8

15 files changed

Lines changed: 75 additions & 36 deletions

File tree

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="nuget.props" />
33

44
<PropertyGroup>
5-
<NetVersion>net9.0</NetVersion>
5+
<NetVersion>net10.0</NetVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
@@ -13,7 +13,7 @@
1313

1414
<PropertyGroup Condition=" $(MSBuildProjectName.Contains('Maui')) ">
1515
<UseMaui>true</UseMaui>
16-
<MauiVersion>9.0.80</MauiVersion>
16+
<MauiVersion>10.0.10</MauiVersion>
1717
<XamlCompilationOptions>Compile</XamlCompilationOptions>
1818
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
1919
</PropertyGroup>

Directory.Packages.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
<PackageVersion Include="AdamE.Firebase.iOS.Analytics" Version="11.10.0" />
1010
<PackageVersion Include="AdamE.Firebase.iOS.Crashlytics" Version="11.10.0" />
1111
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
12-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
12+
<PackageVersion Include="Microsoft.Maui.Core" Version="10.0.10" />
1313
<PackageVersion Include="Microsoft.Toolkit.Mvvm" Version="7.1.2" />
14+
<PackageVersion Include="Xamarin.AndroidX.Lifecycle.LiveData.Ktx" Version="2.9.4" />
15+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
1416
<PackageVersion Include="NUnit" Version="4.0.1" />
1517
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
16-
<PackageVersion Include="Xamarin.AndroidX.Lifecycle.LiveData.Ktx" Version="2.8.7.4" />
1718
<PackageVersion Include="Xamarin.Firebase.Analytics" Version="122.3.0.2" />
1819
<PackageVersion Include="Xamarin.Firebase.Crashlytics" Version="119.4.2.1" />
1920
</ItemGroup>

global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"sdk": {
3-
"allowPrerelease": false
3+
"allowPrerelease": false,
4+
"version": "10.0.100"
45
}
56
}

nuget.props

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup Condition=" $(MSBuildProjectName.Equals('HorusStudio.Maui.MaterialDesignControls')) ">
33
<PackageId>HorusStudio.Maui.MaterialDesignControls</PackageId>
4-
<Version>2.2.0</Version>
4+
<Version>10.0.0</Version>
55
<Authors>Horus Studio and contributors</Authors>
66
<Company>Horus Studio</Company>
77
<Title>Material Design Controls for .NET MAUI</Title>
@@ -15,11 +15,7 @@
1515
<PackageTags>dotnet-maui;dotnet;maui;cross-platform;android;ios;macos;maccatalyst;materialdesign;ui</PackageTags>
1616
<PackageReadmeFile>README.md</PackageReadmeFile>
1717
<PackageReleaseNotes>
18-
- Fix Light and Dark themes support
19-
- Add AutomationId support
20-
- [iOS] [MaterialSlider] Fix inactive track color
21-
- [BREAKING CHANGE] [MaterialIconButton] Remove UseIconTintColor property
22-
- [BREAKING CHANGE] [MaterialNavigationDrawer] Remove InactiveIndicatorBackgroundColor property
18+
- Add net10.0 support
2319
</PackageReleaseNotes>
2420
<PackageOutputPath>$(MSBuildThisFileDirectory)Artifacts</PackageOutputPath>
2521
<EscapedCurrentDirectory>$([System.Text.RegularExpressions.Regex]::Escape('$(MSBuildThisFileDirectory)'))</EscapedCurrentDirectory>

samples/HorusStudio.Maui.MaterialDesignControls.Sample/Handlers/CustomMaterialTextFieldHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ protected override void ConnectHandler(MauiTextField platformView)
5151
AndroidViews.View? floatingButton;
5252
AndroidViews.WindowManagerLayoutParams? layoutParams;
5353
AndroidViews.IWindowManager? windowManager;
54-
55-
protected override void ConnectHandler(AppCompatEditText platformView)
54+
55+
protected override void ConnectHandler(MauiAppCompatEditText platformView)
5656
{
5757
base.ConnectHandler(platformView);
5858

@@ -140,8 +140,8 @@ void RemoveFloatingButton()
140140
windowManager?.RemoveView(floatingButton);
141141
}
142142
}
143-
144-
protected override void DisconnectHandler(AppCompatEditText platformView)
143+
144+
protected override void DisconnectHandler(MauiAppCompatEditText platformView)
145145
{
146146
RemoveFloatingButton();
147147
platformView.FocusChange -= OnFocusChanged;

samples/HorusStudio.Maui.MaterialDesignControls.Sample/HorusStudio.Maui.MaterialDesignControls.Sample.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<PackageReference Include="Microsoft.Maui.Controls" />
6767
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" />
6868
<PackageReference Include="Microsoft.Extensions.Logging.Debug" />
69+
<PackageReference Include="Microsoft.Maui.Core" />
6970
<PackageReference Include="Microsoft.Toolkit.Mvvm" />
7071
</ItemGroup>
7172

samples/HorusStudio.Maui.MaterialDesignControls.Sample/Pages/TopAppBarPage.xaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,24 @@
1010
x:TypeArguments="vm:TopAppBarViewModel"
1111
x:DataType="vm:TopAppBarViewModel"
1212
BackgroundColor="{AppThemeBinding Light={x:Static material:MaterialLightTheme.Surface}, Dark={x:Static material:MaterialDarkTheme.Surface}}">
13-
<views:ControlPageWithTopAppBar>
13+
<views:ControlPageWithTopAppBar
14+
AnimateScrollView="True">
1415
<views:ControlPageWithTopAppBar.PageContent>
1516
<VerticalStackLayout Spacing="8">
1617

1718
<material:MaterialCard
1819
Style="{StaticResource CardControlContainer}"
1920
Padding="24"
2021
Margin="0,24,0,0">
21-
<material:MaterialLabel
22-
Text="The MaterialTopAppBar above uses the ScrollViewName to bind the control to a ScrollView and run an animation when scrolling down."
23-
HorizontalOptions="Center"
24-
VerticalOptions="Center" />
22+
<VerticalStackLayout
23+
Spacing="16">
24+
<material:MaterialLabel
25+
Text="Top app bars display navigation, actions, and text at the top of a screen."
26+
Type="TitleMedium" />
27+
<material:MaterialLabel
28+
Text="The MaterialTopAppBar above uses the ScrollViewName to bind the control to a ScrollView and run an animation when scrolling down."
29+
Type="BodyMedium" />
30+
</VerticalStackLayout>
2531
</material:MaterialCard>
2632

2733
<material:MaterialLabel Style="{StaticResource SectionTitle}" Text="CenterAligned" />

samples/HorusStudio.Maui.MaterialDesignControls.Sample/ViewModels/TopAppBarViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public partial class TopAppBarViewModel : BaseViewModel
2323

2424
public TopAppBarViewModel()
2525
{
26-
Subtitle = "Top app bars display navigation, actions, and text at the top of a screen.";
27-
2826
ChangeTrailingIcons();
2927
}
3028

samples/HorusStudio.Maui.MaterialDesignControls.Sample/Views/ControlPageWithTopAppBar.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
<Grid
1010
RowDefinitions="Auto,*">
1111
<material:MaterialTopAppBar
12+
x:Name="topAppBar"
1213
AutomationId="topAppBar"
1314
Headline="{Binding Title}"
1415
Description="{Binding Subtitle}"
1516
LeadingIconCommand="{Binding GoBackCommand}"
1617
LeadingIconIsBusy="{Binding Path=GoBackCommand.IsRunning}"
1718
LeadingIcon="ic_back.png"
1819
Type="Large"
19-
ScrollViewName="MdcControlPageScroll"
2020
TrailingIcons="{Binding ContextualActions}" />
2121
<ScrollView
2222
Grid.Row="1"

samples/HorusStudio.Maui.MaterialDesignControls.Sample/Views/ControlPageWithTopAppBar.xaml.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,26 @@ public partial class ControlPageWithTopAppBar : ContentView
1616
}
1717
});
1818

19+
public static readonly BindableProperty AnimateScrollViewProperty = BindableProperty.Create(nameof(AnimateScrollView), typeof(bool), typeof(ControlPageWithTopAppBar), false, propertyChanged: (bindable, _, newValue) =>
20+
{
21+
if (bindable is ControlPageWithTopAppBar self && newValue is bool animateScrollView)
22+
{
23+
self.topAppBar.ScrollViewName = animateScrollView ? "MdcControlPageScroll" : null;
24+
}
25+
});
26+
1927
public View? PageContent
2028
{
2129
get => (View?)GetValue(PageContentProperty);
2230
set => SetValue(PageContentProperty, value);
2331
}
2432

33+
public bool AnimateScrollView
34+
{
35+
get => (bool)GetValue(AnimateScrollViewProperty);
36+
set => SetValue(AnimateScrollViewProperty, value);
37+
}
38+
2539
public ControlPageWithTopAppBar()
2640
{
2741
InitializeComponent();

0 commit comments

Comments
 (0)