Hi,
I am currently using toolwindows as my main window type within my application/docksite (doing this for aesthetic reasons as I prefer the look of the toolwindow tabs instead of the classic documentwindow tab)
What I am trying to achieve is as follows..... I want to dynamically/programatically show buttons on the toolwindow /header depending on preferences; security options & the particular app that I am hosting in the instance of the toolwindow.
So the user could create an instance of the toolwindow that has a print; refresh; and preview button in it's header tab..... but with another instance, the contents/permissions of the toolwindow dictates that they can only see a security button.
Therefore I am trying to see if you have any examples of VB code for programatically creating a button on the toolwindow tab (I think this is possible by editing XAML as seen in the 'Buttons on selected tabs' section of the sample application, but I am unable to find anything that I can generate from VB code). I can then create some classes to hold the different variances for the button (title; graphic; function code) and then call/add to the toolwindow dynamically depending on what the particular requirement & logic that I then define. [I am also presuming that I can add any image I want as the button within the toolwindow tab/header.]
On a further question, as I mentioned I am using the toolwindow for aesthetic reasons as I prefer the square stretched tab/header that stretched across the docksite. Am I painting myself into a corner using toolwindows for everything, or would I be better using document windows and changing templates (if even possible)to replicate toolwindow aesthetics. I just want to make sure that I not doing anything unnatural in terms of WPF & future development.
Please let me know if I can provide any further information or screen dumps of my current application.
Thanks
Bret
I am currently using toolwindows as my main window type within my application/docksite (doing this for aesthetic reasons as I prefer the look of the toolwindow tabs instead of the classic documentwindow tab)
What I am trying to achieve is as follows..... I want to dynamically/programatically show buttons on the toolwindow /header depending on preferences; security options & the particular app that I am hosting in the instance of the toolwindow.
So the user could create an instance of the toolwindow that has a print; refresh; and preview button in it's header tab..... but with another instance, the contents/permissions of the toolwindow dictates that they can only see a security button.
Therefore I am trying to see if you have any examples of VB code for programatically creating a button on the toolwindow tab (I think this is possible by editing XAML as seen in the 'Buttons on selected tabs' section of the sample application, but I am unable to find anything that I can generate from VB code). I can then create some classes to hold the different variances for the button (title; graphic; function code) and then call/add to the toolwindow dynamically depending on what the particular requirement & logic that I then define. [I am also presuming that I can add any image I want as the button within the toolwindow tab/header.]
On a further question, as I mentioned I am using the toolwindow for aesthetic reasons as I prefer the square stretched tab/header that stretched across the docksite. Am I painting myself into a corner using toolwindows for everything, or would I be better using document windows and changing templates (if even possible)to replicate toolwindow aesthetics. I just want to make sure that I not doing anything unnatural in terms of WPF & future development.
Please let me know if I can provide any further information or screen dumps of my current application.
Thanks
Bret