Table of Contents

Class MudCarouselItem

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a slide displayed within a MudCarousel<TData>.

public class MudCarouselItem : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable
Inheritance
MudCarouselItem
Implements
Inherited Members
Extension Methods

Constructors

MudCarouselItem()

public MudCarouselItem()

Properties

ChildContent

The content displayed within this component.

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Color

The color of this item.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

Remarks

Defaults to Default. Theme colors are supported.

CustomTransitionEnter

The custom CSS transition used to blend into this carousel item.

[Parameter]
[Category("Appearance")]
public string? CustomTransitionEnter { get; set; }

Property Value

string

CustomTransitionExit

The custom CSS transition used to blend away from this carousel item.

[Parameter]
[Category("Appearance")]
public string? CustomTransitionExit { get; set; }

Property Value

string

Parent

[CascadingParameter]
protected MudBaseItemsControl<MudCarouselItem>? Parent { get; set; }

Property Value

MudBaseItemsControl<MudCarouselItem>

RightToLeft

[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }

Property Value

bool

Transition

The effect used to blend from this item to a different MudCarouselItem.

[Parameter]
[Category("Appearance")]
public Transition Transition { get; set; }

Property Value

Transition

Remarks

Defaults to Slide.

Visible

Displays this item.

public bool Visible { get; }

Property Value

bool

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose()

Releases resources used by this component.

public void Dispose()

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

See Also

MudCarousel<TData>