alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class SfPromptLibrary

    Represents a prompt library that displays and manages a collection of predefined prompts.

    Inheritance
    System.Object
    SfView
    SfPromptLibrary
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    SfView.OnDraw(ICanvas, RectF)
    SfView.OnHandlerChanged()
    SfView.Padding
    SfView.PaddingProperty
    Namespace: Syncfusion.Maui.AIAssistView
    Assembly: Syncfusion.Maui.AIAssistView.dll
    Syntax
    public class SfPromptLibrary : SfView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, IThemeElement
    Remarks

    Supply a flat sequence of PromptItem objects through ItemsSource. The control derives category and subtopic navigation directly from each item.

    Constructors

    SfPromptLibrary()

    Initializes a new instance of the SfPromptLibrary class.

    Declaration
    public SfPromptLibrary()

    Fields

    ItemsSourceProperty

    Identifies the ItemsSource bindable property.

    Declaration
    public static readonly BindableProperty ItemsSourceProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    PromptSelectedCommandProperty

    Identifies the PromptSelectedCommand bindable property.

    Declaration
    public static readonly BindableProperty PromptSelectedCommandProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    ItemsSource

    Gets or sets the collection of prompts displayed in the prompt library.

    Declaration
    public IEnumerable ItemsSource { get; set; }
    Property Value
    Type
    System.Collections.IEnumerable

    PromptSelectedCommand

    Gets or sets the command that is executed when a prompt is selected from the prompt library.

    Declaration
    public ICommand PromptSelectedCommand { get; set; }
    Property Value
    Type
    System.Windows.Input.ICommand

    Methods

    ArrangeContent(Rect)

    Arranges the internal Prompt Library view within the supplied bounds.

    Declaration
    protected override Size ArrangeContent(Rect bounds)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.Rect bounds

    The final layout bounds assigned to the control.

    Returns
    Type Description
    Microsoft.Maui.Graphics.Size

    The arranged size.

    Overrides
    SfView.ArrangeContent(Rect)

    MeasureContent(Double, Double)

    Measures the internal Prompt Library view.

    Declaration
    protected override Size MeasureContent(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint

    The maximum width available to the control.

    System.Double heightConstraint

    The maximum height available to the control.

    Returns
    Type Description
    Microsoft.Maui.Graphics.Size

    The desired size of the internal view.

    Overrides
    SfView.MeasureContent(Double, Double)

    OnCommonThemeChanged(String, String)

    Responds when the application-wide common theme changes.

    Declaration
    public void OnCommonThemeChanged(string oldTheme, string newTheme)
    Parameters
    Type Name Description
    System.String oldTheme

    The previously applied common theme.

    System.String newTheme

    The newly applied common theme.

    OnControlThemeChanged(String, String)

    Responds when the control-specific theme changes.

    Declaration
    public void OnControlThemeChanged(string oldTheme, string newTheme)
    Parameters
    Type Name Description
    System.String oldTheme

    The previously applied control theme.

    System.String newTheme

    The newly applied control theme.

    Events

    PromptSelected

    Occurs when a prompt is selected from the prompt library.

    Declaration
    public event EventHandler<PromptSelectedEventArgs> PromptSelected
    Event Type
    Type
    System.EventHandler<PromptSelectedEventArgs>

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved