ClassRadLayoutControl
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
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadLayoutControl : LayoutControlGroupBase, ISerializable
Inheritance: objectLayoutControlGroupBaseRadLayoutControl
Implements:
Inherited Members
Constructors
RadLayoutControl()
Initializes a new instance of the RadLayoutControl class.
Declaration
public RadLayoutControl()
Fields
AdditionalCanvasItemsProperty
Identifies the AdditionalCanvasItems dependency property.
Declaration
public static readonly DependencyProperty AdditionalCanvasItemsProperty
Field Value
DependencyProperty
IsInEditModeProperty
Identifies the IsInEditMode dependency property.
Declaration
public static readonly DependencyProperty IsInEditModeProperty
Field Value
DependencyProperty
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
DependencyProperty
SerializationIdProperty
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.
Declaration
public static readonly DependencyProperty SerializationIdProperty
Field Value
DependencyProperty
Properties
AdditionalCanvasItems
Gets the AdditionalCanvasItems collection.
Declaration
public FreezableCollection<FrameworkElement> AdditionalCanvasItems { get; }
Property Value
FreezableCollection<FrameworkElement>
IsInEditMode
Gets or sets the value that indicates whether the LayoutControl is in edit mode.
SelectedItem
Gets or sets the selected item.
Methods
Deserialize(SerializationInfo)
Deserializes the specified info. Restores the property values of the instance from the info.
Declaration
public override void Deserialize(SerializationInfo info)
Parameters
info
Overrides
GetSerializationId(DependencyObject)
Gets the serialization id for the object.
Declaration
public static string GetSerializationId(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
LoadFromXmlString(string)
Loads a previously saved state of the LayoutControl, its child groups and layout items.
Declaration
public void LoadFromXmlString(string xmlValue)
Parameters
xmlValue
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call. .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
SaveToXmlString()
Saves the current state of the LayoutControl, its child groups and layout items into XML-based string.
SetSerializationId(DependencyObject, string)
Sets the serialization id for the object.
Declaration
public static void SetSerializationId(DependencyObject obj, string value)
Parameters
obj
DependencyObject
value
Events
SelectionChanged
Occurs when the selection changes.
Declaration
public event EventHandler<LayoutControlSelectionChangedEventArgs> SelectionChanged
Event Value