Ok, i managed to create DataSource and created tons of custom actions associated with my addon. My addon has it's main interface in docker. There are many controls triggering different actions in this docker. Many of this actions has equivalent method in datasource and equivalent action in AppUi.xaml. Those actions can have hotkeys assigned via Corel customization.
Now i wan't to display assigned hotkeys on Docker controls, so the users can have smooth experiance and learn hotkeys from interacting with docker.
Is there any way to get information from CorelDraw api? Maybe accessing some program buitin datasource or so? I know other way - get active workspace file from User/AppData/Roming/Corel folder, unpack XML with active workspace, parse and get assigned hotkeys from there. But maybe there is a better way?
Hey, i write a docker to coreldraw X8 to show how use my DrawUI Explorer assembly to deserialize the Drawui.xml file.
the project bonus630/ControlsShorcutsCDRAddon: Test Project (github.com)
the core of this addon ControlsShorcutsCDRAddon/DockerUIViewModel.cs at master · bonus630/ControlsShorcutsCDRAddon (github.com)
Excelent!
I noticed that in some shortcuts the modification keys are not signed, for example in the "new" shortcut only the n key is noted, maybe there is a link between the shortcut table and the modifier table