Class ToastGroup
Represents a named collection of ToastItem instances that can be expanded or collapsed as a single group inside a ToastGroupContainer.
Inheritance
Namespace: Syncfusion.UI.Xaml.SfToastNotification
Assembly: Syncfusion.SfToastNotification.WPF.dll
Syntax
public class ToastGroup : Control
Constructors
ToastGroup(String)
Initializes a new instance of the ToastGroup class with the specified name.
Declaration
public ToastGroup(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The display name of the group. |
Fields
CountTextProperty
Identifies the CountText dependency property.
Declaration
public static readonly DependencyProperty CountTextProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IsExpandedProperty
Identifies the IsExpanded dependency property.
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IsLatestExpandedProperty
Identifies the IsLatestExpanded dependency property.
Declaration
public static readonly DependencyProperty IsLatestExpandedProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly DependencyProperty ItemsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LatestItemProperty
Identifies the LatestItem dependency property.
Declaration
public static readonly DependencyProperty LatestItemProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LatestItemTimeTextProperty
Identifies the LatestItemTimeText dependency property.
Declaration
public static readonly DependencyProperty LatestItemTimeTextProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
NameProperty
Identifies the Name dependency property.
Declaration
public static readonly DependencyProperty NameProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
CountText
Gets the caption shown on the "show all notifications" button, e.g. "3 new notifications" (localized).
Declaration
public string CountText { get; }
Property Value
| Type |
|---|
| System.String |
HideItemsCommand
Gets the command that collapses this group back to its preview state.
Declaration
public ICommand HideItemsCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
IsExpanded
Gets or sets a value indicating whether the group is expanded (its items are visible) or collapsed (only the preview is visible).
Declaration
public bool IsExpanded { get; }
Property Value
| Type |
|---|
| System.Boolean |
IsLatestExpanded
Gets or sets a value indicating whether the latest toast's full content is shown inside the preview card (the "latest-only" expanded view).
Declaration
public bool IsLatestExpanded { get; }
Property Value
| Type |
|---|
| System.Boolean |
Items
Gets the collection of toast items that belong to this group.
Declaration
public ObservableCollection<ToastItem> Items { get; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<ToastItem> |
LatestItem
Gets the toast item most recently added to this group, shown as the collapsed-state preview. Kept up to date when items are added or removed.
Declaration
public ToastItem LatestItem { get; }
Property Value
| Type |
|---|
| ToastItem |
LatestItemTimeText
Gets the localized "time ago" caption, e.g. "5m ago", for the latest toast.
Declaration
public string LatestItemTimeText { get; }
Property Value
| Type |
|---|
| System.String |
Name
Gets the display name of the group.
Declaration
public string Name { get; }
Property Value
| Type |
|---|
| System.String |
SeeFewerText
Gets the localized text "See Fewer" displayed on the collapse button.
Declaration
public string SeeFewerText { get; }
Property Value
| Type |
|---|
| System.String |
ShowItemsCommand
Gets the command that expands this group to show its toast items.
Declaration
public ICommand ShowItemsCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
ShowLatestItemCommand
Gets the command that expands this group with the latest toast item's full content already shown.
Declaration
public ICommand ShowLatestItemCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |