Another question about TableControl. I have implemented a custom Attribute Table dockable panel which works exactly like the out-of-the-box one in Pro. The user right-clicks a layer, chooses the option to display the attribute table and a new tab is added to the tab control in my dockable panel (or an existing tab is activated). Now I am trying to add a right-click context menu to each attribute table so the user can zoom to a feature or flash feature. The TableControl community sample describes how to do that. The problem is that in my case the content of each tab is defined via a DataTemplate and in my view model for each tab I have access only to TabControlContent, not TableControl itself. Without TableControl I do not have access to the OID of the feature:
var oid = tableControl.GetObjectIdAsync(tableControl.ActiveRowIndex).Result;
I have attached the relevant files here. I will gladly provide more detail if needed. Thanks!