Hi,
I have a style defined for TabGroupPane in a xamDockManager this includes making the Tab placement be top. However as soon as i drag a Tab out of the group and then create a tab group pane with another tab the style is no longer applied i.e. tabs go to the bottom. Then when I re-dock in the main window i get an error. See images below:
Incorrect behaviour
Error
Hello Hagashen,
If you styles are applied locally (not in application resources), then it is expected that the style will be lost when the Pane is floated. In order to prevent this, you can handle the XamDockManager’s ToolWindowLoaded event and add the styles to the new window.
As far as the exception when re-docking the pane, this assert was removed in the latest service releases for 14.1 and 14.2. I would suggest upgrading to the latest version of one of these volumes.
Please let me know if you have any questions.
Sincerely,
Valerie
www.infragistics.com/support
Hi Valerie,
Thanks for the speedy response it is appreciated. About the styling, if I move the style to application level does that mean it will work without having to handle the ToolWindowLoaded event?
As for the error we are currently using 14.2 has there been a patch or service pack?
Thanks
Hello,
Yes if you include the style at the application level you should not have to use the ToolWindowLoaded event, assuming this is an implicit style. As for the service patch the latest version of Infragistics for 2014 Volume 2 is build number 20142.2081. if you have an earlier version, please upgrade to this version.
If you are still having issues after this, please include a copy of the style or if possible a small sample illustrating the issue so that I can be of further assistance.
Let me know if you have any questions.
Sincerely,Valerie Developer Support Supervisor - XAMLInfragisticswww.infragistics.com/support
I have included the style at the application level, however the behaviour has not changed.
I have attached the style. If possible could you provide a sample of applying the style in the ToolWindowLoaded as I tried that as well and it did not work.
Managed to get the styles to work, so no need to look into that anymore sorry. Could you please provide me a sample on styling the unpinned header? At present it is taking the header of the tab which is not great.
Were you able to resolve your issue?
Typically when you drag all but one pane out of a floating window the tabs will no longer be present. I have attached a simple sample which illustrates this. I am unsure why you are still seeing a tab, perhaps this is due to your styles. Please let me know if you can reproduce this behavior in my sample or alternatively revise the sample to illustrate the issue and provide me with the steps to reproduce so that I can be of further assistance.
One last question:
If I drag a window out I get a tool window with no tabbing in it great, when I drag a second pane into the first one i get tabs also great. Now the problem i face is if i drag one of those tabbed panes out the remaining one stays as a tab, how can i prevent this?
Do you have any other questions on this issue?
The Unpinned header is actually a PaneTabItem control where the Data Context is the Pane itself. You can find the default styles for the PaneTabItem in C:\Program Files (x86)\Infragistics\2014.2\WPF\DefaultStyles\Windows\PrimitivesGeneric.xaml. Look for the Style targeting PaneTabItem with the key igDock:PaneTabItem.UnpinnedTabItemTemplateKey. You can include this style in your application and modify it as needed to get your desired result.