1. You could add one more check for the type of the Pane like this:
sender, Telerik.Windows.RadRoutedEventArgs e)
var pane = e.OriginalSource
&& pane.IsFloating ==
&& pane.PaneGroup.TabStripPlacement != Dock.Top)
pane.PaneGroup.TabStripPlacement = Dock.Top;
2. In order to remove the Close button, you will need to edit the TopTemplate
of RadPaneGroup. The easiest way is to extract the template as explained here
and remove the RadButton with x:Name="CloseButton". I have attached a sample project to demonstrate it, note that I've used Implicit Styles to set a theme
to RadDocking as this approach helps make such customizations easier.
Hope this helps.
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.