New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class DockingPanesFactory

Inheritance: objectDockingPanesFactory

Constructors

C#
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.

C#
protected virtual void AddPane(RadDocking radDocking, RadPane pane)
Parameters:radDockingRadDocking

The RadDocking a RadPane instance is being added to.

paneRadPane

The 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.

C#
protected virtual RadPane CreatePaneForItem(object item)
Parameters:itemobject

The item a RadPane is generated for.

Returns:

RadPane

A new instance of the RadPane class.

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.

C#
protected virtual RadPane CreatePaneForItem(RadDocking radDocking, object item)
Parameters:radDockingRadDocking

The RadDocking a RadPane instance is being added to.

itemobject

The item a RadPane is generated for.

Returns:

RadPane

A new instance of the RadPane class.

Gets the RadPane from the item parameter.

C#
protected virtual RadPane GetPaneFromItem(RadDocking docking, object item)
Parameters:dockingRadDocking

The RadDocking a RadPane instance is being get to.

itemobject

The item which is used to get the pane.

Returns:

RadPane

The RadPane instance.

Determines if the specified item is (or is eligible to be) its own RadPane container.

C#
protected virtual bool IsItemItsOwnPaneContainer(object item)
Parameters:itemobject

The item to check.

Returns:

bool

true if the item is (or is eligible to be) its own RadPane container; otherwise, false.

Removes the pane from the RadDocking layout. By default clears the Header, Content, DataContext and call RemoveFromParent method.

C#
protected virtual void RemovePane(RadPane pane)
Parameters:paneRadPane

The RadPane to remove.