RadzenPanel Expand/Collapse functionality

Is there a way to make the entire HeaderTemplate clickable so that clicking the header expands and collapses the panel or is that a button only function?

Here is possible approach:

<RadzenPanel AllowCollapse="true" Collapsed=@collapsed
             Expand=@(() => collapsed = false) Collapse=@(() => collapsed = true)>
    <HeaderTemplate>
        <div style="flex: 1; cursor: pointer;" @onclick=@(() => collapsed = !collapsed)>
            My header content
        </div>
    </HeaderTemplate>
    <ChildContent>
        Panel content
    </ChildContent>
</RadzenPanel>
@code {
    bool collapsed;
}

Perfect! Exactly what I was looking for. Thank you @enchev