menu

WinUI

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

    Show / Hide Table of Contents

    Class ViewTemplateSelector

    Selects a data template for the view mode.

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

    Constructors

    ViewTemplateSelector()

    Declaration
    public ViewTemplateSelector()

    Properties

    TextTemplate

    Gets or sets the data template for text messages.

    Declaration
    public DataTemplate TextTemplate { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.DataTemplate

    Methods

    SelectTemplateCore(Object)

    Selects a data template based on the item.

    Declaration
    protected override DataTemplate SelectTemplateCore(object item)
    Parameters
    Type Name Description
    System.Object item

    The item to select the template for.

    Returns
    Type Description
    Microsoft.UI.Xaml.DataTemplate

    The selected data template.

    SelectTemplateCore(Object, DependencyObject)

    Selects a data template based on the item and container.

    Declaration
    protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)
    Parameters
    Type Name Description
    System.Object item

    The item to select the template for.

    Microsoft.UI.Xaml.DependencyObject container

    The container for the item.

    Returns
    Type Description
    Microsoft.UI.Xaml.DataTemplate

    The selected data template.

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