ClassDockingPanesFactory
This factory helps PanesSource property usage in MVVM scenarios. It creates new RadPane instances, check whether an item is its own container or not and adds the new generated RadPane to the RadDocking control.
Definition
Namespace:Telerik.Windows.Controls.Docking
Assembly:Telerik.Windows.Controls.Docking.dll
Syntax:
public class DockingPanesFactory
Inheritance: objectDockingPanesFactory
Constructors
DockingPanesFactory()
Declaration
public DockingPanesFactory()
Methods
AddPane(RadDocking, RadPane)
Adds the pane to the radDocking layout.
If there is no available containers to generate the new content
please use the radDocking's GeneratedItemsFactory
to create additional RadSplitContainers and RadPaneGroups.
Declaration
protected virtual void AddPane(RadDocking radDocking, RadPane pane)
Parameters
radDocking
The RadDocking a RadPane instance is being added to.
pane
The RadPane to add.
CreatePaneForItem(RadDocking, object)
Creates a new RadPane instance for item from the PanesSource collection. Make sure to apply set any properties, styles and templates so that the generated RadPane may look properly in the RadDocking. For example set any of the DataContext, Header, Title or Content based on the item as well as Style with bindings in the style setters to bind properties of the item to properties of the RadPane.
Declaration
protected virtual RadPane CreatePaneForItem(RadDocking radDocking, object item)
Parameters
radDocking
The RadDocking a RadPane instance is being added to.
item
The item a RadPane is generated for.
Returns
A new instance of the RadPane class.
CreatePaneForItem(object)
Creates a new RadPane instance for item from the PanesSource collection. Make sure to apply set any properties, styles and templates so that the generated RadPane may look properly in the RadDocking. For example set any of the DataContext, Header, Title or Content based on the item as well as Style with bindings in the style setters to bind properties of the item to properties of the RadPane.
GetPaneFromItem(RadDocking, object)
Gets the RadPane from the item parameter.
Declaration
protected virtual RadPane GetPaneFromItem(RadDocking docking, object item)
Parameters
docking
The RadDocking a RadPane instance is being get to.
item
The item which is used to get the pane.
Returns
The RadPane instance.
IsItemItsOwnPaneContainer(object)
Determines if the specified item is (or is eligible to be) its own RadPane container.
RemovePane(RadPane)
Removes the pane from the RadDocking layout. By default clears the Header, Content, DataContext and call RemoveFromParent method.