Hi everyone,
I have developed a sample projet using RadControls for WPF Q3 2013 Trial Version.
The main window contains :
- A "Create Pane" button
- A user control which encapsulates a Docking control. The Docking's HasDocumentHost property is set to false
The StyleManager.ApplicationTheme property is set to an instance of SummerTheme.
Here is the user control's code-behind :
A floating Pane is created when the user clicks the "Create button".
Each PaneGroup's TabStripPlacement property is set to Top.
The Pane header is not visible when a Pane is docked as shown on the attached picture 1.png.
I have commented the DockingPaneStateChange's body for a testing purpose.
Each PaneGroup's TabStripPlacement property was not set to Top.
The Pane header is visible when a Pane is docked as shown on the attached picture 2.png.
I have looked for information on how to make the Pane header visible when the PaneGroup's TabStripPlacement property is set to Top.
I have read the following forum thread : Forum Thread
I do not understand why the Pane header is not visible when the PaneGroup's TabStripPlacement property is set to Top.
Does the PaneGroup's TabStripPlacement property setter change the PaneGroup's TopTemplate property ?
Do I have to follow the procedure described on the forum thread ?
Thank you in advance for your answer
I have developed a sample projet using RadControls for WPF Q3 2013 Trial Version.
The main window contains :
- A "Create Pane" button
- A user control which encapsulates a Docking control. The Docking's HasDocumentHost property is set to false
The StyleManager.ApplicationTheme property is set to an instance of SummerTheme.
Here is the user control's code-behind :
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using Telerik.Windows.Controls;namespace NoDocumentHost{ /// <summary> /// Interaction logic for DockingUC.xaml /// </summary> public partial class DockingUC : UserControl { public DockingUC() { InitializeComponent(); } public void CreatePane() { RadSplitContainer l_splitContainer = new RadSplitContainer(); RadPaneGroup l_paneGroup = new RadPaneGroup(); l_splitContainer.Items.Add(l_paneGroup); m_docking.Items.Add(l_splitContainer); RadPane l_pane = new RadPane() { CanUserPin = true, Title = "Title", Header = "Header", CanUserClose = true, ContextMenuTemplate = null }; UserControl1 l_userControl = new UserControl1(); l_pane.Content = l_userControl; l_paneGroup.Items.Add(l_pane); l_pane.MakeFloatingDockable(); } private void DockingPaneStateChange(object p_sender, Telerik.Windows.RadRoutedEventArgs p_args) { Dispatcher.BeginInvoke(new Action(() => { RadPane l_pane = (RadPane)p_args.OriginalSource; RadPaneGroup l_paneGroup = l_pane.PaneGroup; l_paneGroup.TabStripPlacement = Dock.Top; })); } }}A floating Pane is created when the user clicks the "Create button".
Each PaneGroup's TabStripPlacement property is set to Top.
The Pane header is not visible when a Pane is docked as shown on the attached picture 1.png.
I have commented the DockingPaneStateChange's body for a testing purpose.
Each PaneGroup's TabStripPlacement property was not set to Top.
The Pane header is visible when a Pane is docked as shown on the attached picture 2.png.
I have looked for information on how to make the Pane header visible when the PaneGroup's TabStripPlacement property is set to Top.
I have read the following forum thread : Forum Thread
I do not understand why the Pane header is not visible when the PaneGroup's TabStripPlacement property is set to Top.
Does the PaneGroup's TabStripPlacement property setter change the PaneGroup's TopTemplate property ?
Do I have to follow the procedure described on the forum thread ?
Thank you in advance for your answer