Table of Contents

Property SearchFilter

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

SearchFilter

Gets or sets a string that is a filter of the toolbox items that appear.

public string SearchFilter { get; set; }

Property Value

string

Examples

Here is how to use a SearchFilter 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.SearchFilter = "Box";
    }
}

Here is how to use a SearchFilter 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.SearchFilter = "Box"
    End Sub
End Class

Remarks

SearchFilter defines a search text and allows the display of only items that match the filter criteria.