OutlineControl Class
Definition
OutlineControl
Inheritance
Implements
Syntax
public class OutlineControl : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IOutlineControl, IComponentConnector
Remarks
OutlineControl control displays the form's layout as a tree view, providing an easy way to navigate and re-arrange controls on the form.
OutlineControl supports editing features such as cutting, copying, pasting, and renaming the controls on the designed form.
Set FormDesigner property to specify the Form Designer control bound to this outline control.
Set Toolbox property to specify the Toolbox control bound to this outline control.
Examples
Here is how to declare a OutlineControl from the C# code:
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var outlineControl = new Alternet.FormDesigner.Wpf.Outline.OutlineControl();
outlineControl.FormDesigner = designer;
outlineControl.Toolbox = toolboxControl;
}
}
Here is how to declare a OutlineControl from the Visual Basic code:
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim formDesigner = New Alternet.FormDesigner.Wpf.Outline.OutlineControl()
outlineControl.FormDesigner = designer
outlineControl.Toolbox = toolboxControl
End Sub
End Class
Constructors
OutlineControl() |
Fields
FormDesignerProperty | Identifies the FormDesigner dependency property. |
RootProperty | |
ToolboxProperty | Identifies the Toolbox dependency property. |
Properties
FormDesigner | Gets or sets |
OutlineContent | |
Root | |
Toolbox | Gets or sets |
Methods
InitializeComponent() | InitializeComponent |
SpecialInitializeComponent() | Fixes InitializeComponent with multiple Versions of same Assembly loaded |