在 WPF 应用程序中, aTabControl中有一个TabItem带有一个的元素Label。我想在这个事件上触发事件MouseClick,Tab但是TabControl事件MouseLeftButtonDown:
<TabItem Header="Header1" MouseLeftButtonDown="TabItem_MouseLeftButtonDown" >
<Label Height="28" Name="AdderLbl" Width="120" Background="Azure" >Label</Label>
</TabItem>
仅在单击标签时触发。这不是我想要的。
我怎么能在 上触发事件,MouseClick而Tab不是它的内容?