Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
</startup>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="NodeCreation.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:NodeCreation"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace NodeCreation
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<Window x:Class="NodeCreation.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:NodeCreation"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
mc:Ignorable="d"
Title="MainWindow" Height="450" WindowState="Maximized" Width="800">
<Window.Resources>
<ResourceDictionary>
<!--Resource Dictionary which contains predefined shapes for Node-->
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Syncfusion.SfDiagram.Wpf;component/Resources/BasicShapes.xaml" />
</ResourceDictionary.MergedDictionaries>


<Style TargetType="syncfusion:Node">
<Setter Property="ShapeStyle">
<Setter.Value>
<Style TargetType="Path">
<Setter Property="Fill" Value="#FF5B9BD5"/>
<Setter Property="Stretch" Value="Fill"/>
<Setter Property="Stroke" Value="#FFEDF1F6 "/>
</Style>
</Setter.Value>
</Setter>
</Style>
<DataTemplate x:Key="NodeShape">
<Viewbox Margin="0,0,19.8,14.6">
<Grid Background="Transparent">
<Path Data="m16.6,14.6H2.6L0,.4C0,.2,0,0,.3,0c.2,0,.4,0,.4.3l2.5,13.6h12.8L19.1.7c0-.2.2-.3.4-.3.2,0,.3.2.3.4l-3.2,13.8Z" Fill="#231f20" StrokeThickness="0"/>
<Path Data="m18.3,5.1H1.5c-.2,0-.3-.2-.3-.4s.2-.4.3-.4h16.8c.2,0,.3.2.3.4s-.2.4-.3.4Z" Fill="#231f20" StrokeThickness="0"/>
</Grid>
</Viewbox>
</DataTemplate>


<DataTemplate x:Key="NodeShape1">
<Viewbox>
<Grid Width="76.99" Height="31.364" Margin="0,0,76.99,31.364" Background="Transparent">
<Grid.RenderTransform>
<TranslateTransform X="-922.26" Y="-523.886"/>
</Grid.RenderTransform>
<Path Data="M32.143,31.35H5.065L-.04.723,1.44.477l4.9,29.373H30.857l4.6-29.864,1.482.228Z" Fill="Black">
<Path.RenderTransform>
<TranslateTransform X="922.3" Y="523.9"/>
</Path.RenderTransform>
</Path>

<Path Data="M33,.75H0V-.75H33Z" Fill="Black">
<Path.RenderTransform>
<TranslateTransform X="924.5" Y="533"/>
</Path.RenderTransform>
</Path>

<Path Data="M10,.75H0V-.75H10Z" Fill="Black">
<Path.RenderTransform>
<TranslateTransform X="956.5" Y="539"/>
</Path.RenderTransform>
</Path>

<Path Data="M-.75-.75h33.5v24.5H-.75Zm32,1.5H.75v21.5h30.5Z" Fill="Black">
<Path.RenderTransform>
<TranslateTransform X="966.5" Y="528"/>
</Path.RenderTransform>
</Path>

<Rectangle Width="16" Height="12" Fill="Black">
<Rectangle.RenderTransform>
<TranslateTransform X="966.5" Y="528"/>
</Rectangle.RenderTransform>
</Rectangle>

<Rectangle Width="16" Height="12" Fill="Black">
<Rectangle.RenderTransform>
<TranslateTransform X="982" Y="539.5"/>
</Rectangle.RenderTransform>
</Rectangle>

</Grid>
</Viewbox>

</DataTemplate>
</ResourceDictionary>
</Window.Resources>

<Grid>
<!--Initialize the Sfdiagram-->
<syncfusion:SfDiagram x:Name="diagram">
<syncfusion:SfDiagram.Nodes>
<syncfusion:NodeCollection>
<syncfusion:NodeViewModel ID="Node1" UnitHeight="100" UnitWidth="100" OffsetX="100" OffsetY="200" ContentTemplate="{StaticResource NodeShape}" x:Name="Node1">

</syncfusion:NodeViewModel>

<syncfusion:NodeViewModel ID="Node2" OffsetX="400" OffsetY="200" UnitHeight="80" UnitWidth="150" ContentTemplate="{StaticResource NodeShape1}" x:Name="Node2">

</syncfusion:NodeViewModel>


</syncfusion:NodeCollection>
</syncfusion:SfDiagram.Nodes>
</syncfusion:SfDiagram>

</Grid>
</Window>
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using Syncfusion.UI.Xaml.Diagram;
using System;
using System.Collections.Generic;
using System.IO.Packaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace NodeCreation
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{

public MainWindow()
{
InitializeComponent();
diagram.SnapSettings = new SnapSettings()
{
SnapConstraints = SnapConstraints.ShowLines,
};

diagram.HorizontalRuler = new Syncfusion.UI.Xaml.Diagram.Controls.Ruler();
diagram.VerticalRuler = new Syncfusion.UI.Xaml.Diagram.Controls.Ruler()
{
Orientation = Orientation.Vertical,
};



}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F0E1D463-A4B1-4BAA-A485-F43D3AE24AB7}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>NodeCreation</RootNamespace>
<AssemblyName>NodeCreation</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>

<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>

<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<PackageReference Include="Syncfusion.SfDiagram.WPF" Version="*" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35209.166
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultipleSVGpaths_462", "MultipleSVGpaths_462.csproj", "{F0E1D463-A4B1-4BAA-A485-F43D3AE24AB7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F0E1D463-A4B1-4BAA-A485-F43D3AE24AB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F0E1D463-A4B1-4BAA-A485-F43D3AE24AB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0E1D463-A4B1-4BAA-A485-F43D3AE24AB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0E1D463-A4B1-4BAA-A485-F43D3AE24AB7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E06219EB-8A4F-4640-9802-FFA79F15C0FF}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
<EnableDefaultEmbeddedResourceItems>False</EnableDefaultEmbeddedResourceItems>
<EnableDefaultItems>false</EnableDefaultItems>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>NodeCreation</AssemblyName>
<RootNamespace>NodeCreation</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;NET50</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>TRACE;NET50</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Xml|AnyCPU'">
<DefineConstants>TRACE;NET50</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Remove="obj\**" />
<Compile Remove="obj_45\**" />
<Compile Remove="obj_462\**" />
<Compile Remove="obj_50\**" />
<Compile Remove="obj_60\**" />
<Compile Remove="obj_70\**" />
<Compile Remove="obj_80\**" />
<Compile Remove="obj_90\**" />
<EmbeddedResource Remove="obj\**" />
<EmbeddedResource Remove="obj_45\**" />
<EmbeddedResource Remove="obj_462\**" />
<EmbeddedResource Remove="obj_50\**" />
<EmbeddedResource Remove="obj_60\**" />
<EmbeddedResource Remove="obj_70\**" />
<EmbeddedResource Remove="obj_80\**" />
<EmbeddedResource Remove="obj_90\**" />
<None Remove="obj\**" />
<None Remove="obj_45\**" />
<None Remove="obj_462\**" />
<None Remove="obj_50\**" />
<None Remove="obj_60\**" />
<None Remove="obj_70\**" />
<None Remove="obj_80\**" />
<None Remove="obj_90\**" />
<Page Remove="obj\**" />
<Page Remove="obj_45\**" />
<Page Remove="obj_462\**" />
<Page Remove="obj_50\**" />
<Page Remove="obj_60\**" />
<None Remove="obj_70\**" />
<None Remove="obj_80\**" />
<None Remove="obj_90\**" />

<None Remove="Properties\Settings.settings" />
<None Include="Properties\Settings.settings" />
<None Remove="App.config" />
<None Include="App.config" />
<ApplicationDefinition Include="App.xaml" />
<Compile Include="App.xaml.cs" />
<Compile Include="MainWindow.xaml.cs" />
<PackageReference Include="Syncfusion.SfDiagram.WPF" Version="*" />
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
</Project>
Loading