[Solved] Setting tab title

Dec 15, 2009 at 7:54 PM

Hello to all.

Let me send you this post to see if it is normal that the wording of my "tabs" and "groups" are preceded by the word "label"?

How can I fix this?

Here is an example of the XML source file.

Thank you for your responses.

D. Detrain


<?xml version='1.0' encoding='utf-8'?>
<Application xmlns='http://schemas.microsoft.com/windows/2009/Ribbon'>
		<Command Name="CMDSave"
					LabelDescription="A voir 1"
					TooltipDescription="Enregistrer le signaletique en cours.">
  		<Command Name="CMDCancel"
					LabelDescription="A voir "
					TooltipDescription="Annule la création ou la modification du signalétique en cours.">
  		<Command Name="CMDDelete"
					LabelDescription="A voir"
					TooltipDescription="Supprimer le signalétique en cours.">
  		<Command Name="CMDExit"
					LabelDescription="A voir"
					TooltipDescription="Abandonne l'encodage en cours et quitte le programme.">

      <Tab CommandName="cmdTabMain">
        <!-- scary part -->
              <Scale Group="cmdGroupFileActions" Size="Large" />
              <Scale Group="cmdGroupExit" Size="Large" />
            <Scale Group="cmdGroupFileActions" Size="Medium" />
        <!-- useful part -->
        <Group CommandName="cmdGroupFileActions" SizeDefinition="ThreeButtons">
          <Button CommandName="CMDSave" />
          <Button CommandName="CMDCancel" />
          <Button CommandName="CMDDelete" />
        <Group CommandName="cmdGroupExit" SizeDefinition="OneButton">
          <Button CommandName="CMDExit" />
      <Tab CommandName ="cmdTabDrop">
        <Group CommandName="cmdGroupDrop" SizeDefinition="ThreeButtons">
          <Button CommandName="cmdButtonDropA" />
          <Button CommandName="cmdButtonDropB" />
          <Button CommandName="cmdButtonDropC" />

Dec 15, 2009 at 9:54 PM

This behavior is expected from your markup code.
You set the command name of your tab (and groups) to a non existing one: cmdTabMain.
What you see is the default behavior of the ribbon framework when the specfied command doesn't exists, or has its LabelTitle attribute missing.

To fix this you should add a command definition for your tabs and groups and define the LabelTitle.
For example:

<Command Name="cmdTabMain"

Dec 16, 2009 at 7:41 AM

Dear Arik,

Unfortunately, when I bring this amendment, I can no longer convert the xml to a cr.

The error is: "LabelTitle attribute is not defined in the DTD schema.

The pattern I use is as follows: <Application xmlns='http://schemas.microsoft.com/windows/2009/Ribbon'>

Can you help me.

I take this opportunity to congratulate you on your remarkable work.

D. Detrain

Dec 16, 2009 at 7:59 AM

I had a small typo there, it should be:

<Command Name="cmdTabMain"

Anyway, please try to compile and run the "04-TabGroupHelp" sample, the markup code there works and shows it.

Just to be on the safe side, I remind you that the prerequistes are:
Windows 7 (not beta nor RC).
Windows 7 SDK (not beta nor RC).


Dec 16, 2009 at 8:16 AM

Dear Arik,

Thank you for your reply.

It works perfectly now. I just put the wrong clause LabelTitle "

Best regards.

D. Detrain