menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SuggestionsViewer - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SuggestionsViewer

    Represents a control that can be used to present a collection of suggesiton items in the SfAIAssistView.

    Inheritance
    System.Object
    SuggestionsViewer
    Namespace: Syncfusion.UI.Xaml.Chat
    Assembly: Syncfusion.Chat.WinUI.dll
    Syntax
    public class SuggestionsViewer : ItemsControl

    Constructors

    SuggestionsViewer()

    Initializes a new instance of the SuggestionsViewer class.

    Declaration
    public SuggestionsViewer()

    Fields

    SelectableProperty

    Identifies the SuggestionsViewer.Selectable XAML attached property.

    Declaration
    public static readonly DependencyProperty SelectableProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    Methods

    ClearContainerForItemOverride(DependencyObject, Object)

    Clear the element displayed in the suggestions.

    Declaration
    protected override void ClearContainerForItemOverride(DependencyObject element, object item)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject element
    System.Object item

    GetSelectable(DependencyObject)

    Gets the value of the SuggestionsViewer.Selectable XAML attached property from the specified FrameworkElement.

    Declaration
    public static ISuggestionSelectionBehavior GetSelectable(DependencyObject obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The element from which to read the property value.

    Returns
    Type Description
    ISuggestionSelectionBehavior

    The value of the SuggestionsViewer.Selectablen XAML attached property on the target element.

    PrepareContainerForItemOverride(DependencyObject, Object)

    Creates or identifies the element that is used to display the suggestions.

    Declaration
    protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject element
    System.Object item

    SetSelectable(DependencyObject, ISuggestionSelectionBehavior)

    Sets the value of the SuggestionsViewer.Selectable XAML attached property on the specified FrameworkElement.

    Declaration
    public static void SetSelectable(DependencyObject obj, ISuggestionSelectionBehavior value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The target element on which to set the SuggestionsViewer.Selectable XAML attached property.

    ISuggestionSelectionBehavior value

    The property value to set.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved