Xceed Ultimate ListBox for Silverlight Documentation
SearchTextBox Class
Members  Example 


Represents the text box into which searches (filters) are typed by the end user.
Syntax
<TemplateVisualStateAttribute(Name="HasFilter", GroupName="FilterStates")>
<TemplateVisualStateAttribute(GroupName="FilterStates", Name="NoFilter")>
<TemplateVisualStateAttribute(GroupName="FilterStates", Name="TooComplex")>
Public Class SearchTextBox 
   Inherits WatermarkTextBox
   Implements IFilterExpressionProvider 
Dim instance As SearchTextBox
[TemplateVisualStateAttribute(Name="HasFilter", GroupName="FilterStates")]
[TemplateVisualStateAttribute(GroupName="FilterStates", Name="NoFilter")]
[TemplateVisualStateAttribute(GroupName="FilterStates", Name="TooComplex")]
public class SearchTextBox : WatermarkTextBox, IFilterExpressionProvider  
Remarks
To show the tool pane and therefore the search text box, set ToolPaneVisibility to Visibility.Visible. To activate the search text box, the FilteredFieldNames attached property must be set to a FieldNameList instance representing the fields by which the data can be filtered.
Example
<sllb:ListBox x:Name="sllbListBox"
      ItemsSource="{Binding Path=Customers}"
      ItemTemplate="{StaticResource itemTemplate}">
    <sllb:SearchTextBox.FilteredFieldNames>
        <sllb:FieldNameList>
            <s:String>Country</s:String>
        </sllb:FieldNameList>
    </sllb:SearchTextBox.FilteredFieldNames>
</sllb:ListBox>
Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.TextBox
                  Xceed.Silverlight.Controls.AutoSelectTextBox
                     Xceed.Silverlight.Controls.WatermarkTextBox
                        Xceed.Silverlight.Controls.SearchTextBox

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SearchTextBox Members
Xceed.Silverlight.Controls Namespace

Send Feedback