我想将 MatAppBar 与 MatDrawer 一起使用。问题是 MatDrawer 在应用栏上滚动。如何让它在 AppBar 后面滚动?
<MatAppBarContainer >
<MatAppBar Fixed="true">
<MatAppBarRow>
<MatAppBarSection>
<MatIconButton Icon="menu" OnClick="@((e) => ButtonClicked())"></MatIconButton>
<MatAppBarTitle>MatBlazor - Material Design components for Blazor</MatAppBarTitle>
</MatAppBarSection>
<MatAppBarSection Align="@MatAppBarSectionAlign.End">
<MatIconButton Icon="favorite"></MatIconButton>
</MatAppBarSection>
</MatAppBarRow>
</MatAppBar>
<MatAppBarContent>
<MatDrawerContainer Style="width: 100%; height: 100vh;">
<MatDrawer @bind-Opened="@Opened" Style="background-color: whitesmoke">
<MatNavMenu>
<MatNavItem OnClick="ClickMe" Title="Item 1">Item 1 - OnClick</MatNavItem>
<MatNavItem Disabled="true" Title="Item 2">Item 2</MatNavItem>
</MatNavMenu>
</MatDrawer>
<MatDrawerContent>
<div>
<p>page content</p>
</div>
</MatDrawerContent>
</MatDrawerContainer>
</MatAppBarContent>