diff --git a/Scintilla.NET/Scintilla.NET.csproj b/Scintilla.NET/Scintilla.NET.csproj
index f213046..d47add9 100644
--- a/Scintilla.NET/Scintilla.NET.csproj
+++ b/Scintilla.NET/Scintilla.NET.csproj
@@ -32,12 +32,6 @@
Jacob Slusser, VPKSoft, cyber960, desjarlais
README.md
-
- 7
-
-
- 7
-
True
@@ -62,6 +56,9 @@
true
+
+
+
diff --git a/Scintilla.NET/Scintilla.cs b/Scintilla.NET/Scintilla.cs
index e8abea0..332a72b 100644
--- a/Scintilla.NET/Scintilla.cs
+++ b/Scintilla.NET/Scintilla.cs
@@ -18,6 +18,7 @@ namespace ScintillaNET
/// Represents a Scintilla editor control.
///
[Docking(DockingBehavior.Ask)]
+ [Designer(typeof(ScintillaDesigner))]
public class Scintilla : Control
{
static Scintilla()
diff --git a/Scintilla.NET/ScintillaDesigner.cs b/Scintilla.NET/ScintillaDesigner.cs
new file mode 100644
index 0000000..cc1d003
--- /dev/null
+++ b/Scintilla.NET/ScintillaDesigner.cs
@@ -0,0 +1,42 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms.Design;
+
+namespace ScintillaNET;
+
+internal class ScintillaDesigner : ControlDesigner
+{
+ protected override void PreFilterProperties(IDictionary properties)
+ {
+ base.PreFilterProperties(properties);
+
+ var scrollWidthTracking = (PropertyDescriptor)properties[nameof(Scintilla.ScrollWidthTracking)];
+ scrollWidthTracking = TypeDescriptor.CreateProperty(
+ scrollWidthTracking.ComponentType,
+ scrollWidthTracking,
+ scrollWidthTracking.Attributes.Cast().Concat([new RefreshPropertiesAttribute(RefreshProperties.All)]).ToArray()
+ );
+ properties[nameof(Scintilla.ScrollWidthTracking)] = scrollWidthTracking;
+
+ var scrollWidth = (PropertyDescriptor)properties[nameof(Scintilla.ScrollWidth)];
+ if ((bool)scrollWidthTracking.GetValue(Component))
+ {
+ scrollWidth = TypeDescriptor.CreateProperty(
+ scrollWidth.ComponentType,
+ scrollWidth,
+ scrollWidth.Attributes.Cast().Concat(
+ [
+ new BrowsableAttribute(false),
+ new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden),
+ ]
+ ).ToArray()
+ );
+ properties[nameof(Scintilla.ScrollWidth)] = scrollWidth;
+ }
+ }
+}