alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ToastActionDataTemplateSelector

    DataTemplateSelector for toast action buttons. Allows users to customize button appearance by providing custom templates per action.

    Inheritance
    System.Object
    ToastActionDataTemplateSelector
    Namespace: Syncfusion.UI.Xaml.SfToastNotification
    Assembly: Syncfusion.SfToastNotification.WPF.dll
    Syntax
    public class ToastActionDataTemplateSelector : DataTemplateSelector

    Constructors

    ToastActionDataTemplateSelector()

    Declaration
    public ToastActionDataTemplateSelector()

    Properties

    DefaultTemplate

    Default template used when action does not have a custom template.

    Declaration
    public DataTemplate DefaultTemplate { get; set; }
    Property Value
    Type
    System.Windows.DataTemplate

    Methods

    SelectTemplate(Object, DependencyObject)

    Selects the appropriate template for the action button. If the action has a custom template, it uses that; otherwise, uses the default template.

    Declaration
    public override DataTemplate SelectTemplate(object item, DependencyObject container)
    Parameters
    Type Name Description
    System.Object item
    System.Windows.DependencyObject container
    Returns
    Type
    System.Windows.DataTemplate
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved