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

Represents a layout control that allows for the arrangement and manipulation of its child elements. The RadLayoutControl facilitates drag-and-drop operations, enabling users to reorder and resize layout items visually. It includes support for dynamic layouts, serialization of child elements, and customizable appearance based on themes. This control also provides mechanisms for handling user interactions such as selection changes and context menu actions, making it a versatile component for building responsive and adaptive user interfaces.

Definition

Constructors

Initializes a new instance of the RadLayoutControl class.

C#
public RadLayoutControl()

Fields

Identifies the AdditionalCanvasItems dependency property.

C#
public static readonly DependencyProperty AdditionalCanvasItemsProperty

IsInEditModeProperty

DependencyProperty

Identifies the IsInEditMode dependency property.

C#
public static readonly DependencyProperty IsInEditModeProperty

SelectedItemProperty

DependencyProperty

Identifies the SelectedItem dependency property.

C#
public static readonly DependencyProperty SelectedItemProperty

SerializationIdProperty

DependencyProperty

Identifies the SerializationId attached dependency property. Use this property to set serialization Id on LayoutControl, LayoutControlGroups and all child elements in them you need to save/load.

C#
public static readonly DependencyProperty SerializationIdProperty

Properties

AdditionalCanvasItems

FreezableCollection<FrameworkElement>

Gets the AdditionalCanvasItems collection.

C#
public FreezableCollection<FrameworkElement> AdditionalCanvasItems { get; }

Gets or sets the value that indicates whether the LayoutControl is in edit mode.

C#
public bool IsInEditMode { get; set; }

Gets or sets the selected item.

C#
public object SelectedItem { get; set; }

Methods

Deserializes the specified info. Restores the property values of the instance from the info.

C#
public override void Deserialize(SerializationInfo info)
Parameters:infoSerializationInfo

Overrides: LayoutControlGroupBase.Deserialize(SerializationInfo)

Gets the serialization id for the object.

C#
public static string GetSerializationId(DependencyObject obj)
Parameters:objDependencyObjectReturns:

string

Loads a previously saved state of the LayoutControl, its child groups and layout items.

C#
public void LoadFromXmlString(string xmlValue)
Parameters:xmlValuestring

When overridden in a derived class, is invoked whenever application code or internal processes call. .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Resets the theme.

C#
public void ResetTheme()

Saves the current state of the LayoutControl, its child groups and layout items into XML-based string.

C#
public string SaveToXmlString()
Returns:

string

Sets the serialization id for the object.

C#
public static void SetSerializationId(DependencyObject obj, string value)
Parameters:objDependencyObjectvaluestring

Events

Occurs when the selection changes.

C#
public event EventHandler<LayoutControlSelectionChangedEventArgs> SelectionChanged