Skip to main content

DockLayoutManager.LayoutItemSelectionChanging Event

Fires when the layout item's selection state is about to be changed.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v14.2.dll

#Declaration

public event LayoutItemSelectionChangingEventHandler LayoutItemSelectionChanging

#Event Data

The LayoutItemSelectionChanging event's handler receives an argument of the LayoutItemSelectionChangingEventArgs type. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether the current operation must be canceled. Inherited from ItemCancelEventArgs.
Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
Item Gets the currently processed item. Inherited from ItemEventArgs.
OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
Selected Gets whether the item is selected.
Source Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

#Remarks

An end-user can select a layout item in Customization Mode by clicking the item; and deselect the item by clicking it while holding the CTRL key down. If an item is selected or allows selection, it's possible to invoke its customization context menu by right-clicking the item. In addition, the items that allow selection can be moved via drag-and-drop.

To prevent an item's selection state from being changed, you can do one of the following:

The LayoutItemSelectionChanging is just a notification event that fires after an item has been successfully selected/deselected.

See Also