diff --git a/src/FluentDragDrop.sln b/src/FluentDragDrop.sln
index 836e984..f2cd9f1 100644
--- a/src/FluentDragDrop.sln
+++ b/src/FluentDragDrop.sln
@@ -5,7 +5,9 @@ VisualStudioVersion = 16.0.29920.165
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentDragDrop", "FluentDragDrop\FluentDragDrop.csproj", "{E1C8F65D-84CC-474E-A7FE-C0891C15456B}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentDragDropExample", "FluentDragDropExample\FluentDragDropExample.csproj", "{05DAD2B7-D198-42AF-9B06-BB38D171CED6}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentDragDropExample", "FluentDragDropExample\FluentDragDropExample.csproj", "{05DAD2B7-D198-42AF-9B06-BB38D171CED6}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentDragDropNuGetExample", "FluentDragDropNuGetExample\FluentDragDropNuGetExample.csproj", "{AAF1A53A-37D3-4F0F-8070-73C00FEEE3ED}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -21,6 +23,10 @@ Global
{05DAD2B7-D198-42AF-9B06-BB38D171CED6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05DAD2B7-D198-42AF-9B06-BB38D171CED6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05DAD2B7-D198-42AF-9B06-BB38D171CED6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AAF1A53A-37D3-4F0F-8070-73C00FEEE3ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AAF1A53A-37D3-4F0F-8070-73C00FEEE3ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AAF1A53A-37D3-4F0F-8070-73C00FEEE3ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AAF1A53A-37D3-4F0F-8070-73C00FEEE3ED}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/src/FluentDragDrop/FluentDragDrop.csproj b/src/FluentDragDrop/FluentDragDrop.csproj
index 6754d97..bc63735 100644
--- a/src/FluentDragDrop/FluentDragDrop.csproj
+++ b/src/FluentDragDrop/FluentDragDrop.csproj
@@ -10,5 +10,6 @@ This package brings rich Drag and Drop experience to your app, just by adding a
The app icon was made by Freepik from www.flaticon.com and is licensed by Creative Commons BY 3.0. Thank you for your awesome work, mates!
Fluent;Drag;Drop;Windows;Forms;UI
+ Andreas Wäscher 2020
\ No newline at end of file
diff --git a/src/FluentDragDropNuGetExample/App.config b/src/FluentDragDropNuGetExample/App.config
new file mode 100644
index 0000000..3bab2f5
--- /dev/null
+++ b/src/FluentDragDropNuGetExample/App.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/FluentDragDropNuGetExample/FluentDragDropNuGetExample.csproj b/src/FluentDragDropNuGetExample/FluentDragDropNuGetExample.csproj
new file mode 100644
index 0000000..546a9ff
--- /dev/null
+++ b/src/FluentDragDropNuGetExample/FluentDragDropNuGetExample.csproj
@@ -0,0 +1,18 @@
+
+
+
+ WinExe
+ net471;netcoreapp3.1
+ true
+
+
+
+ true
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/FluentDragDropNuGetExample/Program.cs b/src/FluentDragDropNuGetExample/Program.cs
new file mode 100644
index 0000000..300db92
--- /dev/null
+++ b/src/FluentDragDropNuGetExample/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Windows.Forms;
+
+namespace FluentDragDropNuGetExample
+{
+ internal static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ private static void Main()
+ {
+#if !NET471
+ Application.SetHighDpiMode(HighDpiMode.SystemAware);
+#endif
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new TestForm());
+ }
+ }
+}
diff --git a/src/FluentDragDropNuGetExample/TestForm.Designer.cs b/src/FluentDragDropNuGetExample/TestForm.Designer.cs
new file mode 100644
index 0000000..ac3e845
--- /dev/null
+++ b/src/FluentDragDropNuGetExample/TestForm.Designer.cs
@@ -0,0 +1,72 @@
+namespace FluentDragDropNuGetExample
+{
+ partial class TestForm
+ {
+ ///
+ /// 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.buttonDrag = new System.Windows.Forms.Button();
+ this.pnlDrop = new System.Windows.Forms.Panel();
+ this.SuspendLayout();
+ //
+ // buttonDrag
+ //
+ this.buttonDrag.Location = new System.Drawing.Point(75, 79);
+ this.buttonDrag.Name = "buttonDrag";
+ this.buttonDrag.Size = new System.Drawing.Size(180, 100);
+ this.buttonDrag.TabIndex = 0;
+ this.buttonDrag.Text = "Drag me";
+ this.buttonDrag.UseVisualStyleBackColor = true;
+ this.buttonDrag.MouseDown += new System.Windows.Forms.MouseEventHandler(this.buttonDrag_MouseDown);
+ //
+ // pnlDrop
+ //
+ this.pnlDrop.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pnlDrop.Location = new System.Drawing.Point(530, 79);
+ this.pnlDrop.Name = "pnlDrop";
+ this.pnlDrop.Size = new System.Drawing.Size(180, 100);
+ this.pnlDrop.TabIndex = 1;
+ //
+ // TestForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 251);
+ this.Controls.Add(this.pnlDrop);
+ this.Controls.Add(this.buttonDrag);
+ this.Name = "TestForm";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "FluentDrag&Drop NuGet Test";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button buttonDrag;
+ private System.Windows.Forms.Panel pnlDrop;
+ }
+}
\ No newline at end of file
diff --git a/src/FluentDragDropNuGetExample/TestForm.cs b/src/FluentDragDropNuGetExample/TestForm.cs
new file mode 100644
index 0000000..7ecac65
--- /dev/null
+++ b/src/FluentDragDropNuGetExample/TestForm.cs
@@ -0,0 +1,30 @@
+using FluentDragDrop;
+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;
+
+namespace FluentDragDropNuGetExample
+{
+ public partial class TestForm : Form
+ {
+ public TestForm()
+ {
+ InitializeComponent();
+ }
+
+ private void buttonDrag_MouseDown(object sender, MouseEventArgs e)
+ {
+ buttonDrag.InitializeDragAndDrop()
+ .Link()
+ .OnMouseMove()
+ .WithData(() => true)
+ .To(pnlDrop, (_, __) => MessageBox.Show("Successfully dropped.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information));
+ }
+ }
+}
diff --git a/src/FluentDragDropNuGetExample/TestForm.resx b/src/FluentDragDropNuGetExample/TestForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/src/FluentDragDropNuGetExample/TestForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/src/version.json b/src/version.json
index 1ca687d..78491ce 100644
--- a/src/version.json
+++ b/src/version.json
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
- "version": "0.3",
+ "version": "1.0",
"publicReleaseRefSpec": [
".*/master$" // we release out of master
],