I want to apply my own image/style to the close button. How can I do it?
If it is not possible can I put my own button in the Header and give the close action to it?
I dont want pin button and the drop down on the Content pane header. How can I remove it?
Setting the AllowPin property only disables the pin button.
~Sachin
Thank you, setting FloatingWindowCaptionSource="UseContentPaneCaption" on XamDockManager resolved the issue.
If a pane is floating by itself then by default you won't see the PaneHeaderPresenter. Instead you just see the non-client area of the containing PaneToolWindow so I assume the close button you are referring to is that - the close button for the floating window itself. Depending on the theme and other settings that non-client area is literally OS provided non-client area (which you cannot affect with WPF styles) or is the styling of the PaneToolWindow itself (which itself is just referencing/sharing the ToolWindow styling defined in our Windows assembly). So you can either handle the ToolWindowLoaded, set the e.Window.UseOSNonClientArea to false and then define your own Style & ControlTemplate for the PaneToolWindow (copying the ToolWindow styling from one of the themes in the xaml provided as part of the install) or you could set the FloatingWindowCaptionSource of the xamDockManager to UseContentPaneCaption in which case the UseOSNonClientArea is resolved to false and the caption area that would normally be provided by the PaneToolWindow will be collapsed and the ContentPane's PaneHeaderPresenter will be displayed.
Hi, I am trying to apply this solution but it seems I am failing somewhere, could someone please take a look and see if there is an error in what I'm doing. Here is complete XAML of simple application which consists of dock manager with two content panes. I am using libraries InfragisticsWPF4.v14.1.dll and InfragisticsWPF4.DockManager.v14.1.dll.
I need to hide all buttons on content panes when they are floating but close buttons [x] are still visible:
You could modify the snippet I provided and set the Width to 0 instead of 16 - this was just a sample that you could change as you needed. Alternatively you can create your own ControlTemplate for the PaneHeaderPresenter that doesn't include this button. You can use the default xaml we ship with the product as a starting point for your custom template; the xaml is in the DefaultStyles directory.
I don't want the close button to be displayed, is their any solution for that?