mirror of https://github.com/dahall/Vanara.git
35 lines
935 B
C#
35 lines
935 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Vanara.Windows.Forms
|
|
{
|
|
[Designer(typeof(Design.EmbeddedContainerDesigner))]
|
|
internal class EmbeddedContainer : ContainerControl
|
|
{
|
|
public EmbeddedContainer()
|
|
{
|
|
base.AutoScroll = false;
|
|
base.Dock = DockStyle.Fill;
|
|
}
|
|
}
|
|
|
|
namespace Design
|
|
{
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
internal class EmbeddedContainerDesigner : AttributedControlDesigner<EmbeddedContainer>
|
|
{
|
|
public EmbeddedContainerDesigner() { }
|
|
|
|
protected override IEnumerable<string> PropertiesToRemove { get; } = new string[]
|
|
{
|
|
"AutoScroll", "AutoScrollOffset", "AutoSize", "BackColor",
|
|
"BackgroundImage", "BackgroundImageLayout", "ContextMenuStrip", "Cursor", "Dock", "Enabled", "Font",
|
|
"ForeColor", /*"Location",*/ "MaximumSize", "MinimumSize", "Padding", /*"Size",*/ "TabStop",
|
|
"UseWaitCursor"
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|