Hi,
I am using a custom header for each toolwindow I present to the user - this is created programatically.
What I have done is set a grid with a column for each button/content (Icon/Title/Close Button/etc) I want to see in the header - I then set this grid to be the content of the header.
This works fine. Now, for one of the column elements of this header grid, I am including another grid which is to contain some of the buttons found in the main ribbon menu.
Right now I am setting these up as 'TitleBarButtons' and then setting each of the titlebarbuttons command value to be the same as the main ribbon-bar calls.
This works fine, however, I want to be able to use the idea that if a ribbon bar button is not enabled (through Execute/CanExecute) then the button in the toolwindow header does the same.
My question is, should I be using TitleBarButtons if this is the case, or is there a way of including ribbon menu/buttons as content in my header/grid, so that everything is working in a uniform way without any duplication of logic to enable/disable buttons.
Thanks
[Modified at 08/08/2011 04:52 AM]
I am using a custom header for each toolwindow I present to the user - this is created programatically.
What I have done is set a grid with a column for each button/content (Icon/Title/Close Button/etc) I want to see in the header - I then set this grid to be the content of the header.
This works fine. Now, for one of the column elements of this header grid, I am including another grid which is to contain some of the buttons found in the main ribbon menu.
Right now I am setting these up as 'TitleBarButtons' and then setting each of the titlebarbuttons command value to be the same as the main ribbon-bar calls.
This works fine, however, I want to be able to use the idea that if a ribbon bar button is not enabled (through Execute/CanExecute) then the button in the toolwindow header does the same.
My question is, should I be using TitleBarButtons if this is the case, or is there a way of including ribbon menu/buttons as content in my header/grid, so that everything is working in a uniform way without any duplication of logic to enable/disable buttons.
Thanks
[Modified at 08/08/2011 04:52 AM]