A newer version of this page is available. Switch to the current version.

LayoutAllowEventArgs Class

Provides data for events raised when upgrading a control's layout, allowing you to cancel the upgrade (e.g. BaseView.BeforeLoadLayout, BarManager.BeforeLoadLayout, etc.).

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v18.2.dll

Declaration

public class LayoutAllowEventArgs :
    LayoutUpgradeEventArgs
Public Class LayoutAllowEventArgs
    Inherits LayoutUpgradeEventArgs

Remarks

The BeforeLoadLayout event occurs before a layout is restored from storage (a stream, XML file or the system registry), allowing you to prevent the layout from being applied. To cancel the layout application, set the LayoutAllowEventArgs.Allow property to false.

To obtain the textual representation of the previous layout version, use the LayoutUpgradeEventArgs.PreviousVersion property.

NOTE

LayoutAllowEventArgs objects are automatically created, initialized and passed to the BeforeLoadLayout event handlers.

Inheritance

See Also