Skip to content

Commit a6a39c1

Browse files
Merge pull request #2 from SyncfusionExamples/center_align_tabs
Update GitHub examples for Maui TabView control
2 parents df13c81 + c4b8d16 commit a6a39c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

TabViewSample/TabViewSample/MainPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private void UpdateTabHeaderPadding(double width)
4545
{
4646
if (tabItem is Syncfusion.Maui.TabView.SfTabItem tabItemView)
4747
{
48-
totalTabWidth += tabItemView.Measure(double.PositiveInfinity, double.PositiveInfinity).Request.Width;
48+
totalTabWidth += tabItemView.Measure(double.PositiveInfinity, double.PositiveInfinity).Width;
4949
}
5050
}
5151
double remainingSpace = ((width - totalTabWidth));

TabViewSample/TabViewSample/TabViewSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
88

@@ -59,7 +59,7 @@
5959
<ItemGroup>
6060
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
6161
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
62-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
62+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
6363
<PackageReference Include="Syncfusion.Maui.TabView" Version="*" />
6464
</ItemGroup>
6565

0 commit comments

Comments
 (0)