I am sharing a tabax successor for Ax6 as an example of usage WPF control.
The form uses standard tab control from WPF with a custom template.
Also you can use it as an example of event handling.
The code has a problem which I can not resolve now: if you press a middle or right mouse button on a tab, vontr scrolls to the start - so you can accidentially close wrong tab. Now the workaround provided: if such event occured, event handler uses selected tab instead of tab under click