Table of Contents

Class OutlineControl

Namespace
Alternet.FormDesigner.Wpf.Outline
Assembly
Alternet.FormDesigner.Wpf.v10.dll

Represents a surface hosting the WPF outline control.

public class OutlineControl : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IOutlineControl, IComponentConnector
Inheritance
OutlineControl
Implements
Extension Methods

Examples

Here is how to declare a OutlineControl from the C# code:

using Alternet.FormDesigner.Wpf;
using Alternet.FormDesigner.Wpf.Outline;
using Alternet.FormDesigner.Wpf.Toolbox;

public partial class MainWindow : Window
{
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var formDesigner = new FormDesignerControl();
        formDesigner.AutoSaveToSource = false;

        var toolboxControl = new ToolboxControl();
        toolboxControl.FormDesigner = formDesigner;

        var outlineControl = new OutlineControl();
        outlineControl.FormDesigner = formDesigner;
        outlineControl.Toolbox = toolboxControl;
    }
}

Here is how to declare a OutlineControl from the Visual Basic code:

Imports Alternet.FormDesigner.Wpf
Imports Alternet.FormDesigner.Wpf.Outline
Imports Alternet.FormDesigner.Wpf.Toolbox

Partial Public Class MainWindow
    Inherits Window
    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim formDesigner = New FormDesignerControl()
        formDesigner.AutoSaveToSource = False

        Dim toolboxControl = New ToolboxControl()
        toolboxControl.FormDesigner = formDesigner

        Dim outlineControl = New OutlineControl()
        outlineControl.FormDesigner = formDesigner
        outlineControl.Toolbox = toolboxControl
    End Sub
End Class

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.

Constructors

OutlineControl()

Initializes a new instance of the OutlineControl class with default settings.

Fields

FormDesignerProperty

Identifies the FormDesigner dependency property.

RootProperty

Identifies the Root dependency property.

ToolboxProperty

Identifies the Toolbox dependency property.

Properties

FormDesigner

Gets or sets IFormDesignerControl bound to this outline control.

OutlineContent

Gets a content of the outline control.

Root

Gets or sets an IOutlineNode that is a root node in the hierarchical structure.

Toolbox

Gets or sets IToolboxControl bound to this outline control.

Methods

InitializeComponent()

InitializeComponent

SpecialInitializeComponent()

Fixes InitializeComponent with multiple Versions of same Assembly loaded