UI XML good or bad?

Add-in Express™ Support Service
That's what is more important than anything else

UI XML good or bad?
getVisible="getVisible_Callback" ... it's ok? 
hernan di pietro


Guest


In http://www.add-in-express.com/docs/net-ribbon-components.php it's clear that ADX UI designer generates the UI XML markup according to the user established properties for each UI element.

I've noted that even when supposedly the markup should get getXXXX="getXXXX_callback" attributes replaced by ATTR=VALUE pairs, i've found that the markup for my ribbon contains a lot (practically on every control) of getVisible="getVisible_Callback" attributes.

This is correct?

Should I manually replace it with "visible=true"? There is some method to force the markup generated to put the proper attributes?

Please note that I'm researching for this since sometimes the Tab where my ribbon button resides (e.g "Message" on New Mail window) dissapears requiring to restart Outlook. Extreme cases I've checked required re-registering ADX.

Related topics:

http://www.add-in-express.com/forum/read.php?FID=5&TID=6366&MID=31700
http://www.add-in-express.com/forum/read.php?FID=5&TID=8806

Thank you very much!
Posted 28 Jun, 2011 17:13:14 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hi Hernan,

This case should be treated automatically; I assume there's a bug in Add-in Express. Could you please send me IntializeComponent from your add-in module? Please find the support e-mail address in readme.txr; and please make sure your e-mail contains a link to this topic.

You have two ways to affect the Ribbon XML:
- in OnRibbonBeforeCreate - it occurs before the XML is generated - you add/remove Ribbon components onto the add-in module
- in OnRibbonBeforeLoad - it occurs after the XML is generated but before it is given back to Office - you modify the generated XML as required


Andrei Smolin
Add-in Express Team Leader
Posted 29 Jun, 2011 03:52:22 Top
hernan di pietro


Guest


Andrei, I've submitted a support form with attached data.

Thank you.
Posted 29 Jun, 2011 12:40:28 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hi Hernan,

Thank you for sending me the files. As far as I understand, you see getVisible_Callback for the tab that has IdMso = "TabNewMailMessage", right?

I've been told that this XML markup is correct despite my previous assumptions. May I know what made you think that such a tab should have visible and not getVisible attribute?


Andrei Smolin
Add-in Express Team Leader
Posted 30 Jun, 2011 09:07:21 Top