Hi Everybody,
I am trying to understand the sample code comes with the Microstation CONNECT Edition SDK (Update 17). The sample project I am looking at is at
<Mocristation SDK Root Folder>\examples\WPF\WPFDemo\
In the WPFDemoKeyins.cs file of the project, there is such a function invoked by the key-in "WPFDEMO ACTIVATECONTEXTTABSET DrawingTest".
/*------------------------------------------------------------------------------------**/ /// WPFDEMO ACTIVATECONTEXTTABSET DrawingTest /// <summary>Activate Contextual Tab using API</summary> /*--------------+---------------+---------------+---------------+---------------+------*/ public static void ActivateContextualTabSet(string unparsed){ Session.ActivateContextualTabSet (unparsed); }
However, after running it I still don't know what it does. I also find the documentation of the Session class and its ActivateContextualTabSet method in the SDK document file MSTNPLatformNET, but still don't understand what it does due to the lack of explanation in the document.
Can anybody tell me what it does? or from where I can find better explanation?
code is attached.8802.WPFDemo.zip
Thank you!
Sui
Hi,
Sui Huang said:However, after running it I still don't know what it does
In my opinion it is quite clear and no API knowledge is required (and to read user MicroStation documentation is recommended): Contextual tabs are ribbon parts, displayed only in specific context.
Because the method requires string, I guess it defines keytip (shortcut) what tab should be activated.
Sui Huang said:but still don't understand what it does due to the lack of explanation in the document.
As I wrote, user documentation helps more in my opinion. And, as always, to consult C++ help is recommended too: In ribbon documentation, a bit more details how contextual tabs work and are defined is available.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point