SearchEnabled Property
SearchEnabled
Declaration
public bool SearchEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
ToolboxControl allows users to search for controls by name. You can hide ToolboxControl search part by setting SearchEnabled to false. The default value of the SearchEnabled is true.
Examples
Here is how to use a SearchEnabled 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.SearchEnabled = false;
}
}
Here is how to use a SearchEnabled 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.SearchEnabled = False
End Sub
End Class