SmartSearchBehavior.ItemDescription Attached Property
Specifies a string that describes the expected content and/or data format for the item. This is an attached property.
Namespace: DevExpress.AIIntegration.Wpf
Assembly: DevExpress.AIIntegration.Wpf.v25.1.dll
NuGet Package: DevExpress.AIIntegration.Wpf
Declaration
Returns
Type | Description |
---|---|
String | A string that describes the expected content and/or data format for the item. |
Remarks
Item descriptions are optional if an item’s content or header/caption is specified (for example, BarItem.Content
and BarItem.Description
properties or accordion UI element’s Header
property is set to a non-empty string). Although Smart Search attempts to find items based on their text, we recommend that you also describe items for improved accuracy.
Use the ItemDescription
attached property to add descriptions to certain items:
<dxr:RibbonPageGroup Caption="System Protection">
<dxb:BarButtonItem Content="Enable Protection"
dxai:SmartSearchBehavior.ItemDescription="Activates software protection against unauthorized access." />
<dxb:BarButtonItem Content="Login"
dxai:SmartSearchBehavior.ItemDescription="Displays a sign-in or login form." />
<dxb:BarButtonItem Content="Settings"
dxai:SmartSearchBehavior.ItemDescription="Displays settings and options related to security and protection." />
</dxr:RibbonPageGroup>
See the following help topic for more information: Smart Search AI-powered Extension.