Skip to content

Commit

Permalink
added .net8 target, fixed precompiler conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Dobrynin committed Jul 26, 2024
1 parent 6ef7ae6 commit 6e0fe72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MPowerKit.VirtualizeListView/BuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static MauiAppBuilder UseMPowerKitListView(this MauiAppBuilder builder)
handlers.AddHandler<VirtualizeListView, VirtualizeListViewHandler>();
#endif
#if !WINDOWS
#if !WINDOWS && !NET8_0
handlers.AddHandler<FixedRefreshView, FixedRefreshViewRenderer>();
#endif
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.22621.0</TargetFrameworks>

<UseMaui>true</UseMaui>
Expand All @@ -20,7 +20,7 @@

<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>MPowerKit.VirtualizeListView</Title>
<Version>1.2.2</Version>
<Version>1.2.3</Version>
<Authors>MPowerKit,Alex Dobrynin</Authors>
<Description>MAUI Virtualize ListView with smooth scrolling and without platform-specific code</Description>
<Copyright>MPowerKit</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion MPowerKit.VirtualizeListView/VirtualizeListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public virtual void AdjustScroll(double dx, double dy)
#elif WINDOWS
var scroll = this.Handler?.PlatformView as Microsoft.UI.Xaml.Controls.ScrollViewer;
scroll?.ChangeView(ScrollX + dx, ScrollY + dy, null, true);
#else
#elif ANDROID
var scroll = this.Handler?.PlatformView as SmoothScrollView;
scroll?.AdjustScroll(dx, dy);
#endif
Expand Down

0 comments on commit 6e0fe72

Please sign in to comment.