Yes, this is possible. To hide the close button or the tab on a TabbedDocument you will have to access the children collection of the DockPresentationElement,
which is a child of the DockPresentationControl's
RootElement (the one you actually see).
By default the DockPresentationElement
has three children in its collection. The important child is the third one, which is an instance of DockPresenterLayout
which is a container of DockContentPrimitive
Let's focus on the ForceSizeLayoutPanel
which contains a StripLayoutPanel
and in that strip there are instances of CaptionLayout
. As you see, you will have to play a bit with the children collections of the elements in your DockPresentationControl
. The CaptionLayout's
purpose is to be a container of all caption elements which in our case are instances of RadTabStripElement
and a DropDownButton
i.e as you access these elements you will have control of all their properties. To hide an element you could use the Visibility
property which you could set to one of the three states - ElementVisibility.Hidden, ElementVisibility.Collapsed or ElementVisibility.Visible.
I hope this helps. Please feel free to write us if you have any further questions.
the Telerik team