DockingPanesFactory
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
public DockingPanesFactory()
Methods
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.
protected virtual void AddPane(RadDocking radDocking, RadPane pane)
The RadDocking a RadPane instance is being added to.
paneRadPaneThe RadPane to add.
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.
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.
protected virtual RadPane CreatePaneForItem(RadDocking radDocking, object item)
The RadDocking a RadPane instance is being added to.
itemobjectThe item a RadPane is generated for.
Returns:A new instance of the RadPane class.
Gets the RadPane from the item parameter.
protected virtual RadPane GetPaneFromItem(RadDocking docking, object item)
The RadDocking a RadPane instance is being get to.
itemobjectThe item which is used to get the pane.
Returns:The RadPane instance.
Removes the pane from the RadDocking layout. By default clears the Header, Content, DataContext and call RemoveFromParent method.