diff --git a/Samples/PanTool/PanTool/PanTool.sln b/Samples/PanTool/PanTool/PanTool.sln new file mode 100644 index 0000000..659f1aa --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34309.116 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PanTool", "PanTool\PanTool.csproj", "{D1A251E6-2333-43E8-92DC-CAF4E120214C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D1A251E6-2333-43E8-92DC-CAF4E120214C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D1A251E6-2333-43E8-92DC-CAF4E120214C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D1A251E6-2333-43E8-92DC-CAF4E120214C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D1A251E6-2333-43E8-92DC-CAF4E120214C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {928EAFEB-2161-4DE0-8430-4CE3C66B805B} + EndGlobalSection +EndGlobal diff --git a/Samples/PanTool/PanTool/PanTool/App.config b/Samples/PanTool/PanTool/PanTool/App.config new file mode 100644 index 0000000..b50c74f --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Samples/PanTool/PanTool/PanTool/Form1.Designer.cs b/Samples/PanTool/PanTool/PanTool/Form1.Designer.cs new file mode 100644 index 0000000..246ff21 --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Form1.Designer.cs @@ -0,0 +1,169 @@ +namespace PanTool +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + Syncfusion.Windows.Forms.Diagram.Binding binding1 = new Syncfusion.Windows.Forms.Diagram.Binding(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.diagram1 = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram(this.components); + this.model1 = new Syncfusion.Windows.Forms.Diagram.Model(this.components); + this.panel2 = new System.Windows.Forms.Panel(); + this.button2 = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + this.panel3 = new System.Windows.Forms.Panel(); + this.propertyEditor1 = new Syncfusion.Windows.Forms.Diagram.Controls.PropertyEditor(this.components); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); + ((System.ComponentModel.ISupportInitialize)(this.diagram1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.model1)).BeginInit(); + this.panel2.SuspendLayout(); + this.panel3.SuspendLayout(); + this.SuspendLayout(); + // + // diagram1 + // + binding1.DefaultConnector = null; + binding1.DefaultNode = null; + binding1.Diagram = this.diagram1; + binding1.Id = null; + //binding1.Label = ((System.Collections.Generic.List)(resources.GetObject("binding1.Label"))); + binding1.ParentId = null; + this.diagram1.Binding = binding1; + this.diagram1.Controller.Constraint = Syncfusion.Windows.Forms.Diagram.Constraints.PageEditable; + this.diagram1.Controller.DefaultConnectorTool = Syncfusion.Windows.Forms.Diagram.ConnectorTool.OrgLineConnectorTool; + this.diagram1.Controller.PasteOffset = new System.Drawing.SizeF(10F, 10F); + this.diagram1.Dock = System.Windows.Forms.DockStyle.Fill; + this.diagram1.EnableTouchMode = false; + this.diagram1.HScroll = true; + this.diagram1.LayoutManager = null; + this.diagram1.Location = new System.Drawing.Point(0, 0); + this.diagram1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.diagram1.Model = this.model1; + this.diagram1.Name = "diagram1"; + //this.diagram1.ScrollVirtualBounds = ((System.Drawing.RectangleF)(resources.GetObject("diagram1.ScrollVirtualBounds"))); + this.diagram1.Size = new System.Drawing.Size(450, 562); + this.diagram1.SmartSizeBox = false; + this.diagram1.TabIndex = 0; + this.diagram1.Text = "diagram1"; + // + // + // + this.diagram1.View.ClientRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); + this.diagram1.View.Controller = this.diagram1.Controller; + this.diagram1.View.Grid.MinPixelSpacing = 4F; + //this.diagram1.View.ScrollVirtualBounds = ((System.Drawing.RectangleF)(resources.GetObject("resource.ScrollVirtualBounds"))); + this.diagram1.View.ZoomType = Syncfusion.Windows.Forms.Diagram.ZoomType.TopLeft; + this.diagram1.VScroll = true; + // + // model1 + // + this.model1.AlignmentType = Syncfusion.Windows.Forms.Diagram.AlignmentType.SelectedNode; + this.model1.BackgroundStyle.PathBrushStyle = Syncfusion.Windows.Forms.Diagram.PathGradientBrushStyle.RectangleCenter; + this.model1.DocumentScale.DisplayName = "No Scale"; + this.model1.DocumentScale.Height = 1F; + this.model1.DocumentScale.Width = 1F; + this.model1.DocumentSize.DisplayName = "SameAsPrinter"; + this.model1.DocumentSize.Height = 850F; + this.model1.DocumentSize.Width = 1100F; + this.model1.LineStyle.DashPattern = null; + this.model1.LineStyle.LineColor = System.Drawing.Color.Black; + this.model1.LogicalSize = new System.Drawing.SizeF(1100F, 850F); + this.model1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 0); + this.model1.ShadowStyle.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105))))); + this.model1.ShadowStyle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105))))); + // + // panel2 + // + this.panel2.AutoSize = true; + this.panel2.Controls.Add(this.button2); + this.panel2.Controls.Add(this.button1); + this.panel2.Controls.Add(this.diagram1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(450, 562); + this.panel2.TabIndex = 2; + // + // panel3 + // + this.panel3.Controls.Add(this.propertyEditor1); + this.panel3.Dock = System.Windows.Forms.DockStyle.Right; + this.panel3.Location = new System.Drawing.Point(450, 0); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(450, 562); + this.panel3.TabIndex = 1; + // + // propertyEditor1 + // + this.propertyEditor1.Diagram = this.diagram1; + this.propertyEditor1.Dock = System.Windows.Forms.DockStyle.Fill; + this.propertyEditor1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.propertyEditor1.Location = new System.Drawing.Point(0, 0); + this.propertyEditor1.Name = "propertyEditor1"; + this.propertyEditor1.Size = new System.Drawing.Size(450, 562); + this.propertyEditor1.TabIndex = 0; + // + // openFileDialog1 + // + this.openFileDialog1.FileName = "openFileDialog1"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(900, 562); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel3); + this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.Name = "Form1"; + this.Text = "Form1"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + ((System.ComponentModel.ISupportInitialize)(this.diagram1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.model1)).EndInit(); + this.panel2.ResumeLayout(false); + this.panel3.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel3; + private Syncfusion.Windows.Forms.Diagram.Controls.Diagram diagram1; + private Syncfusion.Windows.Forms.Diagram.Model model1; + private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.SaveFileDialog saveFileDialog1; + private Syncfusion.Windows.Forms.Diagram.Controls.PropertyEditor propertyEditor1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + } +} + diff --git a/Samples/PanTool/PanTool/PanTool/Form1.cs b/Samples/PanTool/PanTool/PanTool/Form1.cs new file mode 100644 index 0000000..cd632c8 --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Form1.cs @@ -0,0 +1,101 @@ +using Syncfusion.Windows.Forms.Diagram; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Rectangle = Syncfusion.Windows.Forms.Diagram.Rectangle; + +namespace PanTool +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + + + this.diagram1.EventSink.NodeMouseEnter += EventSink_NodeMouseEnter; + this.diagram1.EventSink.NodeMouseLeave += EventSink_NodeMouseLeave; + this.CreateRectangle(200, 150); + } + + private void EventSink_NodeMouseLeave(NodeMouseEventArgs evtArgs) + { + this.diagram1.Controller.ActivateTool("PanTool"); + } + + private void EventSink_NodeMouseEnter(NodeMouseEventArgs evtArgs) + { + this.diagram1.Controller.ActivateTool("SelectTool"); + } + + private void CreateRectangle(float x, float y) + { + var rectangle = new Rectangle(x, y, 100, 100); + rectangle.FillStyle.Type = FillStyleType.Solid; + rectangle.FillStyle.Color = Color.CornflowerBlue; + rectangle.EnableCentralPort = true; + + var rectangle1 = new Rectangle(x + 50, y + 200, 100, 100); + rectangle1.FillStyle.Type = FillStyleType.Solid; + rectangle1.FillStyle.Color = Color.CornflowerBlue; + rectangle1.EnableCentralPort = true; + + #region CentralPort + var port1 = new ConnectionPoint() + { + //VisualType = PortVisualType.SquarePort, + AllowConnectOnDrag = true, + OffsetX = 0, + OffsetY = 0, + }; + port1.FillStyle.Type = FillStyleType.Solid; + port1.FillStyle.Color = Color.Black; + rectangle.Ports.Add(port1); + + var port = new ConnectionPoint() + { + //VisualType = PortVisualType.SquarePort, + AllowConnectOnDrag = true, + OffsetX = 0, + OffsetY = 0, + }; + port.FillStyle.Type = FillStyleType.Solid; + port.FillStyle.Color = Color.Black; + rectangle1.Ports.Add(port); + #endregion + OrgLineConnector connector = new OrgLineConnector(new PointF(0, 0), new PointF(0, 0)); + + + + this.diagram1.Model.AppendChild(rectangle); + this.diagram1.Model.AppendChild(rectangle1); + rectangle1.CentralPort.TryConnect(connector.HeadEndPoint); + rectangle.CentralPort.TryConnect(connector.TailEndPoint); + rectangle1.CentralPort.ConnectionsLimit = 2; + + diagram1.Model.AppendChild(connector); + + var custRect = new Rectangle(x + 200, y, 100, 100); + custRect.FillStyle.Type = FillStyleType.Solid; + custRect.FillStyle.Color = Color.CornflowerBlue; + custRect.EnableCentralPort = true; + + + + var custRect2 = new Rectangle(x + 300, y + 200, 100, 100); + custRect2.FillStyle.Type = FillStyleType.Solid; + custRect2.FillStyle.Color = Color.CornflowerBlue; + custRect2.EnableCentralPort = true; + + + diagram1.Model.AppendChild(custRect); + diagram1.Model.AppendChild(custRect2); + } + } +} diff --git a/Samples/PanTool/PanTool/PanTool/PanTool.csproj b/Samples/PanTool/PanTool/PanTool/PanTool.csproj new file mode 100644 index 0000000..2dcbaa9 --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/PanTool.csproj @@ -0,0 +1,96 @@ + + + + + Debug + AnyCPU + {D1A251E6-2333-43E8-92DC-CAF4E120214C} + WinExe + PanTool + PanTool + v4.6.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Syncfusion.Diagram.Base.25.1.35\lib\net462\Syncfusion.Diagram.Base.dll + + + ..\packages\Syncfusion.Diagram.Windows.25.1.35\lib\net462\Syncfusion.Diagram.Windows.dll + + + ..\packages\Syncfusion.Licensing.25.1.35\lib\net462\Syncfusion.Licensing.dll + + + ..\packages\Syncfusion.Shared.Base.25.1.35\lib\net462\Syncfusion.Shared.Base.dll + + + ..\packages\Syncfusion.Shared.Windows.25.1.35\lib\net462\Syncfusion.Shared.Windows.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/Samples/PanTool/PanTool/PanTool/Program.cs b/Samples/PanTool/PanTool/PanTool/Program.cs new file mode 100644 index 0000000..48b5785 --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PanTool +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Samples/PanTool/PanTool/PanTool/Properties/AssemblyInfo.cs b/Samples/PanTool/PanTool/PanTool/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..8d2817e --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PanTool")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PanTool")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d1a251e6-2333-43e8-92dc-caf4e120214c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Samples/PanTool/PanTool/PanTool/Properties/Resources.Designer.cs b/Samples/PanTool/PanTool/PanTool/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2e3f5e7 --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PanTool.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PanTool.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Samples/PanTool/PanTool/PanTool/Properties/Resources.resx b/Samples/PanTool/PanTool/PanTool/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Samples/PanTool/PanTool/PanTool/Properties/Settings.Designer.cs b/Samples/PanTool/PanTool/PanTool/Properties/Settings.Designer.cs new file mode 100644 index 0000000..af807cd --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PanTool.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Samples/PanTool/PanTool/PanTool/Properties/Settings.settings b/Samples/PanTool/PanTool/PanTool/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Samples/PanTool/PanTool/PanTool/packages.config b/Samples/PanTool/PanTool/PanTool/packages.config new file mode 100644 index 0000000..94e158b --- /dev/null +++ b/Samples/PanTool/PanTool/PanTool/packages.config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Samples/PanTool/README.md b/Samples/PanTool/README.md new file mode 100644 index 0000000..c526fd3 --- /dev/null +++ b/Samples/PanTool/README.md @@ -0,0 +1,16 @@ +# Pan Tool sample + +This sample explains how to enable pan tool for diagram area and select tool for node. + +__*Documentation*__: https://help.syncfusion.com/windowsforms/diagram/ports-and-connections + +## Project pre-requisites +To run this application, you need to have the below two in your system + +* [Visual Studio 2019](https://www.visualstudio.com/wpf-vs) +* [Syncfusion.Diagram.Windows](https://www.nuget.org/packages/Syncfusion.Diagram.Windows/) nuget package. To install the package using NuGet Package Manager, refer this [link](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#nuget-package-manager). +* [Syncfusion.Diagram.Utility.Windows](https://www.nuget.org/packages/Syncfusion.Diagram.Utility.Windows/) nuget package. To install the package using NuGet Package Manager, refer this [link](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#nuget-package-manager). +* [Syncfusion.Tools.Windows](https://www.nuget.org/packages/Syncfusion.Tools.Windows/) nuget package. To install the package using NuGet Package Manager, refer this [link](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#nuget-package-manager). + +## Deploying and running the sample +* To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.