Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port FlowLayoutPanelDesigner to runtime #9658

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/System.Design/src/System.Design.Forwards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.SplitContainerDesigner))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.SplitterPanelDesigner))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.SplitterDesigner))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.FlowLayoutPanelDesigner))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.TabControlDesigner))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.TableLayoutPanelDesigner))]
[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Design.TabPageDesigner))]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable disable

Expand Down Expand Up @@ -49,6 +48,9 @@ protected bool Inherited
}
}

internal bool IsInheritedReadOnly
=> InheritanceAttribute.InheritanceLevel == InheritanceLevel.InheritedReadOnly;

/// <summary>
/// This property provides a generic mechanism for discovering parent relationships within designers,
/// and is used by ComponentDesigner's ITreeDesigner interface implementation. This property
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Drawing;

namespace System.Windows.Forms.Design;

internal partial class FlowLayoutPanelDesigner
{
private struct ChildInfo
{
/// <summary>
/// Represents the bounds (including margins) of a child - used for hit testing.
/// </summary>
public Rectangle MarginBounds;

/// <summary>
/// Bounds of the control -- used for drawing the IBar.
/// </summary>
public Rectangle ControlBounds;

/// <summary>
/// Is this child in the selection collection?
/// </summary>
public bool InSelectionCollection;
}
}
Loading
Loading