I have an application that uses a ribbon tab that is dynamically loaded. On this tab i want to include some diagram commands such as "BringToFront".
I cannot use the command binding because i don't find how to set the command target to the diagram... since this diagram is located on a view that is not directly coupled to the tab.
So i thought, i'd just create a regular command and then execute the commands from code, but i can not find any documentation on how to do this.
I have found
But it has a parameter which i don't know how to set it:
> lst = new List<
lst.Add(diagram.SelectedItem as IDiagramItem);
This code refuses to compile with "Unknown Method".
How do i use these methods?