HubSections 上的 OnTapped / OnClicked Header

OnTapped / OnClicked on the HubSections Header

我的 HubSection 看起来像:

<HubSection Header="Press to me >">
   <DataTemplate>
   ...
   </DataTemplate>
</HubSection>

我想知道是否有任何方法可以处理 HubSection ("press me >") 的 Header 上的 tap/click 事件?

像这样的快速回答几乎感觉不值得加分但是...

您只是在寻找 Hub.SectionHeaderClick event. Should also point out you'll need to set your HubSection.IsHeaderInteractive bool 属性 到 True 来启用它。

希望这对您有所帮助,干杯!