Skip to content

Commit 7098151

Browse files
authored
fix #13305 Baseline SnapLines do not appear in DesignSurface (#13324)
fix #13305 Baseline SnapLines do not appear in DesignSurface Ensure that the virtual property is called to have access to the snaplines defined on the derived class.
1 parent 848bacb commit 7098151

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/BehaviorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ private void TestHook_GetAllSnapLines(ref Message m)
799799

800800
if (host.GetDesigner(comp) is ControlDesigner designer)
801801
{
802-
foreach (SnapLine line in designer.SnapLinesInternal)
802+
foreach (SnapLine line in designer.SnapLines)
803803
{
804804
snapLineInfo.Append($"{line}\tAssociated Control = {designer.Control.Name}:::");
805805
}

src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/DragAssistanceManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ internal DragAssistanceManager(
193193
/// </summary>
194194
private void AddSnapLines(ControlDesigner controlDesigner, List<SnapLine> horizontalList, List<SnapLine> verticalList, bool isTarget, bool validTarget)
195195
{
196-
IList<SnapLine> snapLines = controlDesigner.SnapLinesInternal;
196+
IList snapLines = controlDesigner.SnapLines;
197197
// Used for padding snaplines
198198
Rectangle controlRect = controlDesigner.Control.ClientRectangle;
199199
// Used for all others

0 commit comments

Comments
 (0)