L
L
LiptonOlolo2017-11-07 14:16:23
WPF
LiptonOlolo, 2017-11-07 14:16:23

How to limit the context menu call for TabControl'a only for the tab itself, but remove the possibility of calling it in the content of the tab?

Hello!
Actually the whole question is in the title.

<TabItem.ContextMenu>
  <ContextMenu>
    <Button/>
  </ContextMenu>
</TabItem.ContextMenu>

This code works, but through RMB the menu appears anywhere

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tex0, 2017-11-07
@LiptonOlolo

Try like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question