From ffbebacc59a78e1dcd21334d56399ecce227f692 Mon Sep 17 00:00:00 2001 From: ArunKumarSF4054 Date: Fri, 30 Aug 2024 12:41:28 +0530 Subject: [PATCH] WPF-900304_Customize Port hover effect sample --- .../PortsSample/PortsSample/App.config | 6 + .../PortsSample/PortsSample/App.xaml | 9 + .../PortsSample/PortsSample/App.xaml.cs | 17 ++ .../PortsSample/PortsSample/MainWindow.xaml | 174 +++++++++++++++++ .../PortsSample/MainWindow.xaml.cs | 178 ++++++++++++++++++ .../PortsSample/PortsSample_462.csproj | 103 ++++++++++ .../PortsSample/PortsSample_462.sln | 25 +++ .../PortsSample/PortsSample_60.csproj | 104 ++++++++++ .../PortsSample/PortsSample_60.sln | 24 +++ .../PortsSample/PortsSample_80.csproj | 105 +++++++++++ .../PortsSample/PortsSample_80.sln | 24 +++ .../PortsSample/Properties/AssemblyInfo.cs | 55 ++++++ .../Properties/Resources.Designer.cs | 63 +++++++ .../PortsSample/Properties/Resources.resx | 117 ++++++++++++ .../Properties/Settings.Designer.cs | 26 +++ .../PortsSample/Properties/Settings.settings | 7 + .../README.md | 13 ++ 17 files changed, 1050 insertions(+) create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.config create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml.cs create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml.cs create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.csproj create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.sln create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.csproj create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.sln create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.csproj create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.sln create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/AssemblyInfo.cs create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.Designer.cs create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.resx create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.Designer.cs create mode 100644 Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.settings create mode 100644 Samples/Port/How to customize port-hover-effect/README.md diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.config b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.config new file mode 100644 index 00000000..8d234373 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml new file mode 100644 index 00000000..1ea8d9c1 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml.cs b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml.cs new file mode 100644 index 00000000..525cfcad --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/App.xaml.cs @@ -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 PortsSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml new file mode 100644 index 00000000..c27c0690 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml.cs b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml.cs new file mode 100644 index 00000000..a181a9b2 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/MainWindow.xaml.cs @@ -0,0 +1,178 @@ +using Syncfusion.UI.Xaml.Diagram; +using Syncfusion.UI.Xaml.Diagram.Controls; +using Syncfusion.UI.Xaml.Diagram.Serializer; +using Syncfusion.UI.Xaml.Diagram.Utility; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Data; +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; +using System.Xml.Linq; +using Node = Syncfusion.UI.Xaml.Diagram.Node; + +namespace PortsSample +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + diagram.Constraints = GraphConstraints.Default | GraphConstraints.Bridging; + + NodeViewModel node = new NodeViewModel() + { + OffsetX = 300, + OffsetY = 200, + UnitHeight = 100, + UnitWidth = 150, + Shape = this.Resources["Rectangle"], + Annotations = new ObservableCollection() + { + //Initialize the Annotation with content + new AnnotationEditorViewModel() + { + Content="Source node" + } + } + }; + + + NodePortViewModel nodePort = new NodePortViewModel() + { + ID= "nodePort", + NodeOffsetX = 0, + NodeOffsetY = 0.5, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["RedStyle"] as Style, + }; + NodePortViewModel nodePort1 = new NodePortViewModel() + { + ID = "nodePort1", + NodeOffsetX = 0.5, + NodeOffsetY = 0, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["GreenStyle"] as Style, + }; + NodePortViewModel nodePort2 = new NodePortViewModel() + { + ID = "nodePort2", + NodeOffsetX = 0.5, + NodeOffsetY = 1, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["BlackStyle"] as Style, + }; + NodePortViewModel nodePort3 = new NodePortViewModel() + { + ID = "nodePort3", + NodeOffsetX = 1, + NodeOffsetY = 0.5, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["BlueStyle"] as Style, + }; + + + (node.Ports as PortCollection).Add(nodePort); + (node.Ports as PortCollection).Add(nodePort1); + (node.Ports as PortCollection).Add(nodePort2); + (node.Ports as PortCollection).Add(nodePort3); + + (diagram.Nodes as NodeCollection).Add(node); + + + + NodeViewModel node2 = new NodeViewModel() + { + ID = "Node2", + OffsetX = 700, + OffsetY = 300, + UnitHeight = 100, + UnitWidth = 150, + Shape = this.Resources["Rectangle"], + Annotations = new ObservableCollection() + { + //Initialize the Annotation with content + new AnnotationEditorViewModel() + { + Content="Target Node" + } + } + }; + + NodePortViewModel Port = new NodePortViewModel() + { + ID= "Port", + NodeOffsetX = 0, + NodeOffsetY = 0.5, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["RedStyle"] as Style, + }; + NodePortViewModel Port1 = new NodePortViewModel() + { + ID="Port1", + NodeOffsetX = 0.5, + NodeOffsetY = 0, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["GreenStyle"] as Style, + }; + + NodePortViewModel Port2 = new NodePortViewModel() + { + ID="Port2", + NodeOffsetX = 0.5, + NodeOffsetY = 1, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["BlackStyle"] as Style, + }; + NodePortViewModel Port3 = new NodePortViewModel() + { + ID="Port3", + NodeOffsetX = 1, + NodeOffsetY = 0.5, + UnitHeight = 10, + UnitWidth = 10, + Shape = this.Resources["Ellipse"], + ShapeStyle = this.Resources["BlueStyle"] as Style, + }; + + + (node2.Ports as PortCollection).Add(Port); + (node2.Ports as PortCollection).Add(Port1); + (node2.Ports as PortCollection).Add(Port2); + (node2.Ports as PortCollection).Add(Port3); + (diagram.Nodes as NodeCollection).Add(node2); + + + + } + + + } +} diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.csproj b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.csproj new file mode 100644 index 00000000..19168c2c --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.csproj @@ -0,0 +1,103 @@ + + + + + Debug + AnyCPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43} + WinExe + PortsSample + PortsSample + v4.6.2 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + \ No newline at end of file diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.sln b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.sln new file mode 100644 index 00000000..b00de6c4 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_462.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}") = "PortsSample_462", "PortsSample_462.csproj", "{BC7DB42A-176F-4831-853D-0F237C7A5C43}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {71CE9D5D-3748-479E-B861-7BC2869C172C} + EndGlobalSection +EndGlobal diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.csproj b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.csproj new file mode 100644 index 00000000..0607ad72 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.csproj @@ -0,0 +1,104 @@ + + + WinExe + net6.0-windows + true + true + False + false + false + PortsSample + PortsSample + + + TRACE;NET50 + + + TRACE;NET50 + + + TRACE;NET50 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MSBuild:Compile + + + \ No newline at end of file diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.sln b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.sln new file mode 100644 index 00000000..544bd52d --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_60.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31410.414 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortsSample_60", "PortsSample_60.csproj", "{BC7DB42A-176F-4831-853D-0F237C7A5C43}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {71CE9D5D-3748-479E-B861-7BC2869C172C} + EndGlobalSection +EndGlobal diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.csproj b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.csproj new file mode 100644 index 00000000..31d4a004 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.csproj @@ -0,0 +1,105 @@ + + + WinExe + net8.0-windows + true + true + False + false + false + PortsSample + PortsSample + + + TRACE;NET50 + + + TRACE;NET50 + + + TRACE;NET50 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MSBuild:Compile + + + \ No newline at end of file diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.sln b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.sln new file mode 100644 index 00000000..7c1beb15 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/PortsSample_80.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.226.21692 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortsSample_80", "PortsSample_80.csproj", "{BC7DB42A-176F-4831-853D-0F237C7A5C43}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC7DB42A-176F-4831-853D-0F237C7A5C43}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {71CE9D5D-3748-479E-B861-7BC2869C172C} + EndGlobalSection +EndGlobal diff --git a/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/AssemblyInfo.cs b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..5cb4d14e --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 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("PortsSample")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PortsSample")] +[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)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// 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/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.Designer.cs b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.Designer.cs new file mode 100644 index 00000000..765f7bf3 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 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 PortsSample.Properties { + using System; + + + /// + /// 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", "17.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 (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PortsSample.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/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.resx b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Resources.resx new file mode 100644 index 00000000..af7dbebb --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/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/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.Designer.cs b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.Designer.cs new file mode 100644 index 00000000..17e449ac --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 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 PortsSample.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.8.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/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.settings b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.settings new file mode 100644 index 00000000..033d7a5e --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/PortsSample/PortsSample/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Samples/Port/How to customize port-hover-effect/README.md b/Samples/Port/How to customize port-hover-effect/README.md new file mode 100644 index 00000000..bb6c02e3 --- /dev/null +++ b/Samples/Port/How to customize port-hover-effect/README.md @@ -0,0 +1,13 @@ +# Port customization sample +This repository contains sample which shows how to customize Port Hover effect. + +__*Documentation*__: https://help.syncfusion.com/wpf/diagram/port/port#padding + +## 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.SfDiagram.WPF](https://www.nuget.org/packages/Syncfusion.SfDiagram.WPF/) 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.