Toolbox Property
Toolbox
Gets or sets IToolboxControl
bound to this outline control.
Declaration
public IToolboxControl Toolbox { get; set; }
Property Value
Type | Description |
---|---|
IToolboxControl |
Implements
Remarks
You can associate the ToolboxControl with the OutlineControl object by setting Toolbox property.
Examples
Here is how to use a Toolbox in 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 use a Toolbox in 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