AutoFillWithStandardItems Property
AutoFillWithStandardItems
Gets or sets a boolean value indicating whether ToolboxControl content should be automatically filled by the collection of the standard toolbox items.
Declaration
public bool AutoFillWithStandardItems { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
This property determines whether calling the Reset method totally clears all ToolboxControl, if false, or resets it to the standard toolbox item collection.
The default value of the AutoFillWithStandardItems is true.
Examples
Here is how to use a AutoFillWithStandardItems in the C# code:
using Alternet.FormDesigner.Wpf;
using Alternet.FormDesigner.Wpf.Toolbox;
using System;
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;
toolboxControl.AutoFillWithStandardItems = false;
}
private void ToolboxControl_FormDesignerChanged(object sender, EventArgs e)
{
System.Windows.MessageBox.Show("Designer changed");
}
}
Here is how to use a AutoFillWithStandardItems in the Visual Basic code:
Imports Alternet.FormDesigner.Wpf
Imports Alternet.FormDesigner.Wpf.Toolbox
Imports System
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
toolboxControl.AutoFillWithStandardItems = False
End Sub
End Class