Skip to content

Instantly share code, notes, and snippets.

@spinningcat
Created July 20, 2025 17:41
Show Gist options
  • Save spinningcat/52cc7e0fb9c0f868a05049056e3b06cb to your computer and use it in GitHub Desktop.
Save spinningcat/52cc7e0fb9c0f868a05049056e3b06cb to your computer and use it in GitHub Desktop.
<div class="panels">
@{
int index = 0;
}
<MudExpansionPanels MultiExpansion="true" >
@foreach (var position in ViewModel.Entities)
{
@if (index == 0)
{
<MudCard Class="thin-panel">
<MudExpansionPanel [email protected] Expanded="true">
<ProjectView ViewModel=position />
</MudExpansionPanel>
</MudCard>
}
else
{
<MudCard Class="thin-panel">
<MudExpansionPanel [email protected]>
<ProjectView ViewModel=position />
</MudExpansionPanel>
</MudCard>
}
index++;
}
</MudExpansionPanels>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment