Skip to content

Commit ff6791c

Browse files
authored
Merge pull request #1 from kmkrish001/master
xml data binding in blazor listview.
2 parents bca3858 + 5462b3a commit ff6791c

36 files changed

+1453
-0
lines changed

App.razor

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

BlazorApp1.csproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
10+
11+
<ItemGroup>
12+
<PackageReference Include="Syncfusion.Blazor.Lists" Version="23.1.44" />
13+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="23.1.44" />
14+
</ItemGroup>
15+
16+
</Project>

BlazorApp1.csproj.user

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ActiveDebugProfile>IIS Express</ActiveDebugProfile>
5+
</PropertyGroup>
6+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
7+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
8+
</PropertyGroup>
9+
</Project>

BlazorApp1.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.4.33110.190
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorApp1", "BlazorApp1.csproj", "{6B643AE0-56C9-4431-808D-A91CE66854F1}"
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+
{6B643AE0-56C9-4431-808D-A91CE66854F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{6B643AE0-56C9-4431-808D-A91CE66854F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{6B643AE0-56C9-4431-808D-A91CE66854F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{6B643AE0-56C9-4431-808D-A91CE66854F1}.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 = {37BC4E50-C7D2-4C91-BF6A-3B610B658495}
24+
EndGlobalSection
25+
EndGlobal

Data/WeatherForecast.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace BlazorApp1.Data
2+
{
3+
public class WeatherForecast
4+
{
5+
public DateOnly Date { get; set; }
6+
7+
public int TemperatureC { get; set; }
8+
9+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
10+
11+
public string? Summary { get; set; }
12+
}
13+
}

Data/WeatherForecastService.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
namespace BlazorApp1.Data
2+
{
3+
public class WeatherForecastService
4+
{
5+
private static readonly string[] Summaries = new[]
6+
{
7+
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
8+
};
9+
10+
public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
11+
{
12+
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
13+
{
14+
Date = startDate.AddDays(index),
15+
TemperatureC = Random.Shared.Next(-20, 55),
16+
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
17+
}).ToArray());
18+
}
19+
}
20+
}

Data/wwwroot/css/bootstrap/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Data/wwwroot/css/bootstrap/bootstrap.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
SIL OPEN FONT LICENSE Version 1.1
2+
3+
Copyright (c) 2014 Waybury
4+
5+
PREAMBLE
6+
The goals of the Open Font License (OFL) are to stimulate worldwide
7+
development of collaborative font projects, to support the font creation
8+
efforts of academic and linguistic communities, and to provide a free and
9+
open framework in which fonts may be shared and improved in partnership
10+
with others.
11+
12+
The OFL allows the licensed fonts to be used, studied, modified and
13+
redistributed freely as long as they are not sold by themselves. The
14+
fonts, including any derivative works, can be bundled, embedded,
15+
redistributed and/or sold with any software provided that any reserved
16+
names are not used by derivative works. The fonts and derivatives,
17+
however, cannot be released under any other type of license. The
18+
requirement for fonts to remain under this license does not apply
19+
to any document created using the fonts or their derivatives.
20+
21+
DEFINITIONS
22+
"Font Software" refers to the set of files released by the Copyright
23+
Holder(s) under this license and clearly marked as such. This may
24+
include source files, build scripts and documentation.
25+
26+
"Reserved Font Name" refers to any names specified as such after the
27+
copyright statement(s).
28+
29+
"Original Version" refers to the collection of Font Software components as
30+
distributed by the Copyright Holder(s).
31+
32+
"Modified Version" refers to any derivative made by adding to, deleting,
33+
or substituting -- in part or in whole -- any of the components of the
34+
Original Version, by changing formats or by porting the Font Software to a
35+
new environment.
36+
37+
"Author" refers to any designer, engineer, programmer, technical
38+
writer or other person who contributed to the Font Software.
39+
40+
PERMISSION & CONDITIONS
41+
Permission is hereby granted, free of charge, to any person obtaining
42+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
43+
redistribute, and sell modified and unmodified copies of the Font
44+
Software, subject to the following conditions:
45+
46+
1) Neither the Font Software nor any of its individual components,
47+
in Original or Modified Versions, may be sold by itself.
48+
49+
2) Original or Modified Versions of the Font Software may be bundled,
50+
redistributed and/or sold with any software, provided that each copy
51+
contains the above copyright notice and this license. These can be
52+
included either as stand-alone text files, human-readable headers or
53+
in the appropriate machine-readable metadata fields within text or
54+
binary files as long as those fields can be easily viewed by the user.
55+
56+
3) No Modified Version of the Font Software may use the Reserved Font
57+
Name(s) unless explicit written permission is granted by the corresponding
58+
Copyright Holder. This restriction only applies to the primary font name as
59+
presented to the users.
60+
61+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
62+
Software shall not be used to promote, endorse or advertise any
63+
Modified Version, except to acknowledge the contribution(s) of the
64+
Copyright Holder(s) and the Author(s) or with their explicit written
65+
permission.
66+
67+
5) The Font Software, modified or unmodified, in part or in whole,
68+
must be distributed entirely under this license, and must not be
69+
distributed under any other license. The requirement for fonts to
70+
remain under this license does not apply to any document created
71+
using the Font Software.
72+
73+
TERMINATION
74+
This license becomes null and void if any of the above conditions are
75+
not met.
76+
77+
DISCLAIMER
78+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
79+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
80+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
81+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
82+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
83+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
84+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
85+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
86+
OTHER DEALINGS IN THE FONT SOFTWARE.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Waybury
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)