Skip to content

Commit 2e8f2f0

Browse files
Merge pull request #3 from SyncfusionExamples/Update_Sample
Updated Project sample with .Net 9 version.
2 parents e517afd + 91b24cc commit 2e8f2f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+8371
-455
lines changed

SplineCharts/SplineCharts.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.13.35931.197 d17.13
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SplineCharts", "SplineCharts\SplineCharts.csproj", "{EFAC73B8-312E-446F-81C1-C42BAF82F1FC}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{EFAC73B8-312E-446F-81C1-C42BAF82F1FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{EFAC73B8-312E-446F-81C1-C42BAF82F1FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{EFAC73B8-312E-446F-81C1-C42BAF82F1FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{EFAC73B8-312E-446F-81C1-C42BAF82F1FC}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {A92478D4-9C6B-43B3-B3E5-7F61E5863FE3}
24+
EndGlobalSection
25+
EndGlobal

Syncfusion_Dot_NET_MAUI_Spline_Charts/App.xaml renamed to SplineCharts/SplineCharts/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version = "1.0" encoding = "UTF-8" ?>
22
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4-
xmlns:local="clr-namespace:Syncfusion_Dot_NET_MAUI_Spline_Charts"
5-
x:Class="Syncfusion_Dot_NET_MAUI_Spline_Charts.App">
4+
xmlns:local="clr-namespace:SplineCharts"
5+
x:Class="SplineCharts.App">
66
<Application.Resources>
77
<ResourceDictionary>
88
<ResourceDictionary.MergedDictionaries>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace SplineCharts
2+
{
3+
public partial class App : Application
4+
{
5+
public App()
6+
{
7+
InitializeComponent();
8+
}
9+
10+
protected override Window CreateWindow(IActivationState? activationState)
11+
{
12+
return new Window(new AppShell());
13+
}
14+
}
15+
}

Syncfusion_Dot_NET_MAUI_Spline_Charts/AppShell.xaml renamed to SplineCharts/SplineCharts/AppShell.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<Shell
3-
x:Class="Syncfusion_Dot_NET_MAUI_Spline_Charts.AppShell"
3+
x:Class="SplineCharts.AppShell"
44
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6-
xmlns:local="clr-namespace:Syncfusion_Dot_NET_MAUI_Spline_Charts"
7-
Shell.FlyoutBehavior="Disabled">
6+
xmlns:local="clr-namespace:SplineCharts"
7+
Shell.FlyoutBehavior="Disabled"
8+
Title="SplineCharts">
89

910
<ShellContent
10-
Title="Home"
1111
ContentTemplate="{DataTemplate local:MainPage}"
1212
Route="MainPage" />
1313

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace SplineCharts
2+
{
3+
public partial class AppShell : Shell
4+
{
5+
public AppShell()
6+
{
7+
InitializeComponent();
8+
}
9+
}
10+
}

Syncfusion_Dot_NET_MAUI_Spline_Charts/MainPage.xaml renamed to SplineCharts/SplineCharts/MainPage.xaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
x:Class="SplineCharts.MainPage"
45
xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts"
5-
xmlns:model="clr-namespace:Syncfusion_Dot_NET_MAUI_Spline_Charts"
6-
x:Class="Syncfusion_Dot_NET_MAUI_Spline_Charts.MainPage">
6+
xmlns:model="clr-namespace:SplineCharts">
77

88
<chart:SfCartesianChart>
99

@@ -31,11 +31,11 @@
3131
</chart:SfCartesianChart.YAxes>
3232

3333
<chart:SplineSeries Label="Height"
34-
EnableTooltip="True"
35-
ShowDataLabels="True"
36-
ItemsSource="{Binding Data}"
37-
XBindingPath="Name"
38-
YBindingPath="Height">
34+
EnableTooltip="True"
35+
ShowDataLabels="True"
36+
ItemsSource="{Binding Data}"
37+
XBindingPath="Name"
38+
YBindingPath="Height">
3939
</chart:SplineSeries>
4040
</chart:SfCartesianChart>
4141

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace SplineCharts
2+
{
3+
public partial class MainPage : ContentPage
4+
{
5+
public MainPage()
6+
{
7+
InitializeComponent();
8+
}
9+
}
10+
11+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using Microsoft.Extensions.Logging;
2+
using Syncfusion.Maui.Core.Hosting;
3+
namespace SplineCharts
4+
{
5+
public static class MauiProgram
6+
{
7+
public static MauiApp CreateMauiApp()
8+
{
9+
var builder = MauiApp.CreateBuilder();
10+
builder
11+
.UseMauiApp<App>()
12+
.ConfigureSyncfusionCore()
13+
.ConfigureFonts(fonts =>
14+
{
15+
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
16+
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
17+
});
18+
19+
#if DEBUG
20+
builder.Logging.AddDebug();
21+
#endif
22+
23+
return builder.Build();
24+
}
25+
}
26+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Android.App;
2+
using Android.Content.PM;
3+
using Android.OS;
4+
5+
namespace SplineCharts
6+
{
7+
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
8+
public class MainActivity : MauiAppCompatActivity
9+
{
10+
}
11+
}

0 commit comments

Comments
 (0)