Skip to content

Commit 310322c

Browse files
Merge pull request #140 from SyncfusionExamples/ES-965225-Samples
965225: Validate the UG documentation for all public property explanations in Diagramcomponent
2 parents 6a2d7b6 + caffb0e commit 310322c

File tree

557 files changed

+18449
-0
lines changed

Some content is hidden

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

557 files changed

+18449
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.Blazor.Diagram" Version="*" />
11+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="*" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<Folder Include="wwwroot\" />
16+
</ItemGroup>
17+
18+
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.Blazor.Diagram" Version="*" />
11+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="*" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<Folder Include="wwwroot\" />
16+
</ItemGroup>
17+
18+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@namespace AdditionalInfoProperty
2+
<Router AppAssembly="@typeof(App).Assembly">
3+
<Found Context="routeData">
4+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
5+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
6+
</Found>
7+
<NotFound>
8+
<PageTitle>Not found</PageTitle>
9+
<LayoutView Layout="@typeof(MainLayout)">
10+
<p role="alert">Sorry, there's nothing at this address.</p>
11+
</LayoutView>
12+
</NotFound>
13+
</Router>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@page "/"
2+
3+
@using Syncfusion.Blazor.Diagram
4+
<SfDiagramComponent Height="600px" Nodes="@nodes" />
5+
@code
6+
{
7+
DiagramObjectCollection<Node> nodes;
8+
9+
protected override void OnInitialized()
10+
{
11+
nodes = new DiagramObjectCollection<Node>();
12+
13+
// Create a dictionary to store additional information for the annotation.
14+
Dictionary<string, object> AnnotationInfo = new Dictionary<string, object>();
15+
AnnotationInfo.Add("author", "John Doe");
16+
AnnotationInfo.Add("modifiedDate", DateTime.Now);
17+
18+
// A node with an annotation containing additional information.
19+
Node node = new Node()
20+
{
21+
OffsetX = 250,
22+
OffsetY = 250,
23+
Width = 100,
24+
Height = 100,
25+
Style = new ShapeStyle()
26+
{
27+
Fill = "#6BA5D7",
28+
StrokeColor = "white"
29+
},
30+
Annotations = new DiagramObjectCollection<ShapeAnnotation>()
31+
{
32+
new ShapeAnnotation
33+
{
34+
Content = "Annotated Node",
35+
AdditionalInfo = AnnotationInfo
36+
}
37+
}
38+
};
39+
40+
// Add the node to the collection.
41+
nodes.Add(node);
42+
}
43+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@page "/"
2+
@namespace AdditionalInfoProperty.Pages
3+
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4+
@{
5+
Layout = "_Layout";
6+
}
7+
8+
<component type="typeof(App)" render-mode="ServerPrerendered" />
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@using Microsoft.AspNetCore.Components.Web
2+
@namespace AdditionalInfoProperty.Pages
3+
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4+
5+
<!DOCTYPE html>
6+
<html lang="en">
7+
<head>
8+
<meta charset="utf-8" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
10+
<base href="~/" />
11+
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
12+
<link href="css/site.css" rel="stylesheet" />
13+
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
14+
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
15+
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
16+
</head>
17+
<body>
18+
@RenderBody()
19+
20+
21+
22+
<script src="_framework/blazor.server.js"></script>
23+
</body>
24+
</html>

UG-Samples/Events/CollectionChangeEvent/Program.cs renamed to UG-Samples/Annotations/AdditionalInfoProperty/AdditionalInfoProperty/Program.cs

File renamed without changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"iisSettings": {
3+
"windowsAuthentication": false,
4+
"anonymousAuthentication": true,
5+
"iisExpress": {
6+
"applicationUrl": "http://localhost:11920",
7+
"sslPort": 44341
8+
}
9+
},
10+
"profiles": {
11+
"AdditionalInfoProperty": {
12+
"commandName": "Project",
13+
"dotnetRunMessages": true,
14+
"launchBrowser": true,
15+
"applicationUrl": "https://localhost:7204;http://localhost:5236",
16+
"environmentVariables": {
17+
"ASPNETCORE_ENVIRONMENT": "Development"
18+
}
19+
},
20+
"IIS Express": {
21+
"commandName": "IISExpress",
22+
"launchBrowser": true,
23+
"environmentVariables": {
24+
"ASPNETCORE_ENVIRONMENT": "Development"
25+
}
26+
}
27+
}
28+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@namespace AdditionalInfoProperty.Shared
2+
@inherits LayoutComponentBase
3+
4+
<PageTitle>AdditionalInfoProperty</PageTitle>
5+
6+
<div class="page">
7+
<div class="sidebar">
8+
<NavMenu />
9+
</div>
10+
11+
<main>
12+
13+
<article class="content px-4">
14+
@Body
15+
</article>
16+
</main>
17+
</div>

UG-Samples/Events/CollectionChangeEvent/Shared/MainLayout.razor.css renamed to UG-Samples/Annotations/AdditionalInfoProperty/AdditionalInfoProperty/Shared/MainLayout.razor.css

File renamed without changes.

0 commit comments

Comments
 (0)