Skip to content

Commit 2bd7a2a

Browse files
v29.1.33
1 parent 15efd68 commit 2bd7a2a

File tree

5,437 files changed

+1588980
-1
lines changed

Some content is hidden

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

5,437 files changed

+1588980
-1
lines changed

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.vs/
2+
.vscode/
3+
node_modules/
4+
package-lock.json/
5+
sitemap-demos.xml/
6+
/Common/*.sln
7+
/Common/*.sln
8+
/Common/*.user
9+
/Common/wwwroot/scripts/**/*.txt
10+
/Common/wwwroot/scripts/**/*.min.js
11+
/Common/wwwroot/styles/**/*.min.css
12+
/**/wwwroot/*.min.js
13+
/**/*.user
14+
/**/**/bin
15+
/**/**/.vs
16+
/**/**/.vscode
17+
/**/**/obj
18+
/**/bin
19+
/**/.vs
20+
/**/.vscode
21+
/**/obj
22+
/**/node_modules
23+
/**/package-lock.json
24+
AxeReport/
25+
publish/
26+
./sitemap-demos.xml

Blazor-MAUI-Demos/App.xaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:local="clr-namespace:Blazor_MAUI_Demos"
5+
x:Class="Blazor_MAUI_Demos.App">
6+
<Application.Resources>
7+
<ResourceDictionary>
8+
9+
<Color x:Key="PageBackgroundColor">#512bdf</Color>
10+
<Color x:Key="PrimaryTextColor">White</Color>
11+
12+
<Style TargetType="Label">
13+
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
14+
<Setter Property="FontFamily" Value="OpenSansRegular" />
15+
</Style>
16+
17+
<Style TargetType="Button">
18+
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
19+
<Setter Property="FontFamily" Value="OpenSansRegular" />
20+
<Setter Property="BackgroundColor" Value="#2b0b98" />
21+
<Setter Property="Padding" Value="14,10" />
22+
</Style>
23+
24+
</ResourceDictionary>
25+
</Application.Resources>
26+
</Application>

Blazor-MAUI-Demos/App.xaml.cs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#region Copyright Syncfusion® Inc. 2001-2025.
2+
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
3+
// Use of this code is subject to the terms of our license.
4+
// A copy of the current license can be obtained at any time by e-mailing
5+
// [email protected]. Any infringement will be prosecuted under
6+
// applicable laws.
7+
#endregion
8+
namespace Blazor_MAUI_Demos;
9+
10+
public partial class App : Application
11+
{
12+
public App()
13+
{
14+
InitializeComponent();
15+
16+
MainPage = new MainPage();
17+
}
18+
}

Blazor-MAUI-Demos/Blazor_MAUI_Demos_NET8.csproj

+445
Large diffs are not rendered by default.

Blazor-MAUI-Demos/Blazor_MAUI_Demos_NET9.csproj

+445
Large diffs are not rendered by default.

Blazor-MAUI-Demos/Data/SampleModel.cs

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#region Copyright Syncfusion® Inc. 2001-2025.
2+
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
3+
// Use of this code is subject to the terms of our license.
4+
// A copy of the current license can be obtained at any time by e-mailing
5+
// [email protected]. Any infringement will be prosecuted under
6+
// applicable laws.
7+
#endregion
8+
using System.Collections.Generic;
9+
using System.Runtime.Serialization;
10+
using System.Text.Json.Serialization;
11+
12+
namespace Blazor_MAUI_Demos
13+
{
14+
public class SampleListType
15+
{
16+
public List<SampleListType> SourceData { get; set; }
17+
public string Name { get; set; }
18+
[JsonConverter(typeof(JsonStringEnumConverter))]
19+
public SampleType Type { get; set; }
20+
public List<Sample> Samples { get; set; }
21+
public string DemoPath { get; set; }
22+
public string Category { get; set; }
23+
public string InfoTooltip { get; set; }
24+
public bool IsHide { get; set; }
25+
}
26+
27+
public class SampleList
28+
{
29+
public string Name { get; set; }
30+
public string Directory { get; set; }
31+
public string Category { get; set; }
32+
[JsonConverter(typeof(JsonStringEnumConverter))]
33+
public SampleType Type { get; set; }
34+
public List<Sample> Samples { get; set; } = new List<Sample>();
35+
public string ControllerName { get; set; }
36+
public string DemoPath { get; set; }
37+
public bool IsPreview { get; set; }
38+
public string CustomDocLink { get; set; }
39+
public bool IsHideFromHomePageList { get; set; }
40+
public bool IsHide { get; set; }
41+
public bool IsHideFromDevice { get; set; }
42+
public string InfoTooltip { get; set; }
43+
public string ComponentIconName { get; set; }
44+
public string[] NotificationDescription { get; set; }
45+
}
46+
47+
public class Sample
48+
{
49+
public string Name { get; set; }
50+
public string Directory { get; set; }
51+
public string Category { get; set; }
52+
public string FileName { get; set; }
53+
public string Url { get; set; }
54+
public string MappingSampleName { get; set; }
55+
public string MetaTitle { get; set; }
56+
public string MetaDescription { get; set; }
57+
public string HeaderText { get; set; }
58+
public List<SourceCollection> SourceFiles { get; set; } = new List<SourceCollection>();
59+
[JsonConverter(typeof(JsonStringEnumConverter))]
60+
public SampleType Type { get; set; }
61+
public string[] NotificationDescription { get; set; }
62+
public bool IsHideInMobile { get; set; }
63+
}
64+
65+
public class SourceCollection
66+
{
67+
public string FileName { get; set; }
68+
public string Id { get; set; }
69+
}
70+
71+
internal static class SampleBrowser
72+
{
73+
public static List<SampleList> SampleList { get; set; } = new List<SampleList>();
74+
internal static List<string> SampleUrls = new List<string>();
75+
internal static SampleConfig Config { get; set; } = new SampleConfig();
76+
internal static List<string> PreLoadFiles = new List<string>()
77+
{
78+
"_content/styles/common/fonts/open-sans-700.woff2",
79+
"_content/styles/common/fonts/open-sans-regular.woff2"
80+
};
81+
}
82+
83+
[JsonConverter(typeof(JsonStringEnumConverter))]
84+
public enum SampleType
85+
{
86+
[EnumMember(Value = "none")]
87+
None,
88+
[EnumMember(Value = "new")]
89+
New,
90+
[EnumMember(Value = "updated")]
91+
Updated,
92+
[EnumMember(Value = "preview")]
93+
Preview
94+
}
95+
}

Blazor-MAUI-Demos/Main.razor

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Router AppAssembly="@typeof(Main).Assembly">
2+
<Found Context="routeData">
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
5+
</Found>
6+
<NotFound>
7+
<LayoutView Layout="@typeof(MainLayout)">
8+
<p role="alert">Sorry, there's nothing at this address.</p>
9+
</LayoutView>
10+
</NotFound>
11+
</Router>

Blazor-MAUI-Demos/MainPage.xaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:local="clr-namespace:Blazor_MAUI_Demos"
5+
x:Class="Blazor_MAUI_Demos.MainPage"
6+
BackgroundColor="{DynamicResource PageBackgroundColor}"
7+
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
8+
ios:Page.UseSafeArea="True">
9+
10+
<BlazorWebView x:Name ="indexFile" HostPage="wwwroot/index.html">
11+
<BlazorWebView.RootComponents>
12+
<RootComponent Selector="#app" ComponentType="{x:Type local:Main}" />
13+
</BlazorWebView.RootComponents>
14+
</BlazorWebView>
15+
16+
</ContentPage>

Blazor-MAUI-Demos/MainPage.xaml.cs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#region Copyright Syncfusion® Inc. 2001-2025.
2+
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
3+
// Use of this code is subject to the terms of our license.
4+
// A copy of the current license can be obtained at any time by e-mailing
5+
// [email protected]. Any infringement will be prosecuted under
6+
// applicable laws.
7+
#endregion
8+
namespace Blazor_MAUI_Demos;
9+
10+
public partial class MainPage : ContentPage
11+
{
12+
public MainPage()
13+
{
14+
InitializeComponent();
15+
}
16+
}

Blazor-MAUI-Demos/MauiProgram.cs

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#region Copyright Syncfusion® Inc. 2001-2025.
2+
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
3+
// Use of this code is subject to the terms of our license.
4+
// A copy of the current license can be obtained at any time by e-mailing
5+
// [email protected]. Any infringement will be prosecuted under
6+
// applicable laws.
7+
#endregion
8+
using Blazor_MAUI_Demos.Shared;
9+
using Microsoft.AspNetCore.Components.WebView.Maui;
10+
using Syncfusion.Blazor.Popups;
11+
using Syncfusion.Blazor;
12+
using System.Globalization;
13+
using Microsoft.Extensions.Logging;
14+
15+
namespace Blazor_MAUI_Demos;
16+
17+
public static class MauiProgram
18+
{
19+
public static MauiApp CreateMauiApp()
20+
{
21+
var builder = MauiApp.CreateBuilder();
22+
builder
23+
.UseMauiApp<App>()
24+
.ConfigureFonts(fonts =>
25+
{
26+
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
27+
});
28+
29+
builder.Services.AddMauiBlazorWebView();
30+
builder.Services.AddMemoryCache();
31+
32+
#if DEBUG
33+
builder.Services.AddBlazorWebViewDeveloperTools();
34+
#endif
35+
36+
builder.Services.AddSyncfusionBlazor();
37+
builder.Services.AddScoped<SampleService>();
38+
builder.Services.AddSingleton<DeviceMode>();
39+
builder.Services.AddScoped<SfDialogService>();
40+
41+
// Register the locale service to localize the SyncfusionBlazor components.
42+
builder.Services.AddSingleton(typeof(ISyncfusionStringLocalizer), typeof(SyncfusionLocalizer));
43+
44+
// Set the resx file folder path to access
45+
builder.Services.AddLocalization(options => options.ResourcesPath = "Resources");
46+
47+
// To enable maximum logging for every component that uses Microsoft.Extensions.Logging
48+
builder.Services.AddLogging(logging =>
49+
{
50+
logging.SetMinimumLevel(LogLevel.Trace);
51+
logging.AddDebug();
52+
});
53+
54+
// Set the default culture
55+
var culture = new CultureInfo("en-US");
56+
CultureInfo.DefaultThreadCurrentCulture = culture;
57+
CultureInfo.DefaultThreadCurrentUICulture = culture;
58+
59+
return builder.Build();
60+
}
61+
}

Blazor-MAUI-Demos/NuGet.config

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear/>
5+
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json"/>
6+
</packageSources>
7+
<config>
8+
<add key="dependencyVersion" value="Highest"/>
9+
</config>
10+
<packageRestore>
11+
<add key="enabled" value="True"/>
12+
<add key="automatic" value="True"/>
13+
</packageRestore>
14+
<disabledPackageSources/>
15+
<activePackageSource>
16+
<add key="All" value="(Aggregate source)"/>
17+
</activePackageSource>
18+
</configuration>

0 commit comments

Comments
 (0)