@namespace Connected.Components @inherits BindableItemsControlBase @using Connected.Extensions @implements IAsyncDisposable @typeparam TData
@*Selected Content*@ @if (ItemsSource == null) { @ChildContent } else { foreach (TData item in ItemsSource) { @ItemTemplate(item) } } @*Controls*@
@*Left Arrow*@ @if (ShowArrows) { @if (PreviousButtonTemplate == null) { } else {
@PreviousButtonTemplate
} } @*Bullets*@
@if (ShowBullets) {
@for (int i = 0; i < Items.Count; i++) { int current = i; if (BulletTemplate == null) { } else {
@BulletTemplate(current == SelectedIndex)
} }
}
@*Right Arrow*@ @if (ShowArrows) { @if (NextButtonTemplate == null) { } else {
@NextButtonTemplate
} }