Table of Contents

Class MudBaseBindableItemsControl<TChildComponent, TData>

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a base class for designing components with bindable items.

public abstract class MudBaseBindableItemsControl<TChildComponent, TData> : MudBaseItemsControl<TChildComponent>, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged where TChildComponent : MudComponentBase

Type Parameters

TChildComponent

The MudComponentBase managed within this component..

TData

The type of item managed by this component.

Inheritance
MudBaseItemsControl<TChildComponent>
MudBaseBindableItemsControl<TChildComponent, TData>
Implements
Derived
Inherited Members
Extension Methods

Constructors

MudBaseBindableItemsControl()

protected MudBaseBindableItemsControl()

Properties

ItemTemplate

The template used to display each item.

[Parameter]
[Category("Appearance")]
public RenderFragment<TData>? ItemTemplate { get; set; }

Property Value

RenderFragment<TData>

ItemsSource

The alternate source of items if Items is not set.

[Parameter]
[Category("Data")]
public IEnumerable<TData>? ItemsSource { get; set; }

Property Value

IEnumerable<TData>

SelectedItem

The currently selected item.

public object? SelectedItem { get; }

Property Value

object

Remarks

This property will return either an item from the Items property, or an item from ItemsSource if Items is null.