Use the
The ContactSearchInputBox and ContactSearchResultList controls, while related, are designed as separate controls to allow the developer to display search results and search input in separate locations on a page. Use the ContactSearch control in Microsoft Lync Control applications to display the ContactSearchInputBox and ContactSearchResultList controls together in the same location on a page.
Members
Notable ContactSearchInputBox control public properties and events relating to unified communications appear in the following table. For a full list, see topics in the Lync 2010 API Class Library documentation.
Important |
---|
The
|
Property or Event |
Description |
---|---|
|
Gets a
|
|
Gets a bool value which specifies the visibility of the clear search button. This button is enabled whenever there is a value in the search text input box. |
|
Gets a bool value which indicates whether the skill search feature is enabled. |
|
Gets an enumeration value which indicates the current state of the search operation. Valid values are Cleared, Searching, Finished, and Error. |
|
Gets or sets a value which sets the current search criteria. When this property is set, any pending search operation is cancelled, the search results are reset, and a new search operation is invoked with the given criteria. If this value is set to null, the pending search operation is cancelled, the search results are reset, and the control returns to an idle Cleared state. |
|
Gets or sets an enumerated value that represents the search type. The type is a SearchType enumeration. Possible values:
|
|
Gets or sets the maximum number of results to return. |
Code Example
The following example can be used for Microsoft Silverlight and Microsoft Windows Presentation Foundation (WPF) application development.
Copy Code | |
---|---|
<StackPanel> <controls:ContactSearchInputBox x:Name="searchInput"/> <controls:ContactSearchResultList ItemsSource="{Binding Results, ElementName=searchInput, Mode=OneWay}" ResultsState="{Binding SearchState, ElementName=searchInput, Mode=OneWay}"/> </StackPanel> |